Hi

something I've never been able to get working properly but am
determined this time, namely how to handle making modifications to a
system when you live data can't be wiped.

The process I'm trying to apply is:

1) Dump out live database
2) import locally
3) build schema
4) build model
5) use dumpData to generate fixture data

I fall over on 5. It generates a few .yml files (but not all) then
falls over on one table:

schema.yml file looks OK and the file it says it can't find (below)
DOES exist.

Any help appreciated, I've spent far too long on this now.

Error mesage and relevant bit of schema follows:

SCHEMA:
  university_course_level:
    _attributes:
      idMethod: native
    id:
      type: INTEGER
      required: true
      autoIncrement: true
      primaryKey: true
    university_id:
      type: INTEGER
    course_level_id:
      type: INTEGER
    _indexes:
      university_course_level_FI_1:
        - university_id
      university_course_level_FI_2:
        - course_level_id

SQL:

CREATE TABLE `university_course_level`
(
        `id` INTEGER  NOT NULL AUTO_INCREMENT,
        `university_id` INTEGER,
        `course_level_id` INTEGER,
        PRIMARY KEY (`id`),
        INDEX `university_course_level_FI_1` (`university_id`),
        CONSTRAINT `university_course_level_FK_1`
                FOREIGN KEY (`university_id`)
                REFERENCES `university` (`id`),
        INDEX `university_course_level_FI_2` (`course_level_id`),
        CONSTRAINT `university_course_level_FK_2`
                FOREIGN KEY (`course_level_id`)
                REFERENCES `course_level` (`id`)
)Type=MyISAM;


ERROR:

>> file-     /home/bealers/www/U/unionview/c...ase/config/generated-schema.xml
PHP Fatal error:  Uncaught exception 'sfException' with message
'Unable to find path for class "._UniversityCourseLevelMapBuilder".'
in /usr/share/php/symfony/addon/propel/sfPropelData.class.php:214
Stack trace:
#0 [internal function]: sfPropelData-
>loadMapBuilder('._UniversityCou...', 13)
#1 /usr/share/php/symfony/addon/propel/sfPropelData.class.php(263):
array_walk(Array, Array)
#2 /home/bealers/www/U/unionview/codebase/batch/dump.php(19):
sfPropelData->dumpData('/home/bealers/w...')
#3 {main}
  thrown in /usr/share/php/symfony/addon/propel/sfPropelData.class.php
on line 214


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to