Friday, April 6, 2012

Remapping YML files

With doctrine when you make changes to your sql database, you have to do so with code.

I decided to move from a pure test environment to an alpha game environment (what's the diff?, sure sure)

To do this I need a different table setup.  I need the old 'users' table to go away and be replaced by a new one, and I need at least one other table just to get going.  I do still want the old users table and articles table from my test environment, for further testing.

My hope was that I could remove/modify the existing YML files and add more for the tables I needed.  When I started I made a YML table for users and for articles.  The documentation indicates that I can further compartmentalize them, instead of Entities.User.dcm.yml I should be able to use Testing.User.dcm.yml and Livesite.User.dcm.yml as long as the files are set to point to different tables.

However,  its not working.

**


[yangon]$ /usr/local/php53/bin/php doctrine-cli.php orm:generate-entities models
Processing entity "Testing\User"
Processing entity "Testing\Article"
Processing entity "Dynasties2\Users"
Processing entity "Dynasties2\Families"

Entity classes generated to "/home/xxxjermxxx/dixieandtheninjas.net/hellounderscoreworld/applicationFolder/models"

**

[yangon]$ /usr/local/php53/bin/php doctrine-cli.php orm:generate-proxies        
Warning: class_parents(): Class Testing\User does not exist and could not be loaded in /home/xxxjermxxx/dixieandtheninjas.net/hellounderscoreworld/applicationFolder/libraries/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php on line 40

Warning: array_reverse() expects parameter 1 to be array, boolean given in /home/xxxjermxxx/dixieandtheninjas.net/hellounderscoreworld/applicationFolder/libraries/Doctrine/ORM/Mapping/ClassMetadataFactory.php on line 231

Warning: Invalid argument supplied for foreach() in /home/xxxjermxxx/dixieandtheninjas.net/hellounderscoreworld/applicationFolder/libraries/Doctrine/ORM/Mapping
**

I've already tried numerous tricks - naming them all Entity.Test.User.dcm.yml and Entity.Dynasties2.User.dcm.yml and such, but no luck..

No comments:

Post a Comment