Is possible overwriting a Doctrine model in Symfony?

is possible overwriting a Doctrine model in Symfony?

I'm trying no change a "notnull" property, but i can get it..

In 'plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml':

sfGuardUser:
   actAs: [Timestampable]
   columns:
     id:
       type: integer(4)
       primary: true
       autoincrement: true
     username:
       type: string(128)
       notnull: true    
       unique: true
#...

And in 'config/doctrine/schema.yml':

sfGuardUser:
   columns:
     username:
       type: string(128)
       notnull: false
       unique: true

Then "build-all-reload" but it doesn't change..

Any idea?

Javi

Answers


As coronatus said, you can overwrite schemas in Symfony 1.4, you should be able to do this in Symfony 1.3 also if you want to upgrade your project without removing all deprecated 1.2 stuff.


Need Your Help

Visual Studio 2008 "randomly" hangs on test run

visual-studio visual-studio-2008

We are using VS 2008 Team System with the automated test suite, and upon running tests the test host "randomly" locks up. I actually have to kill the VSTestHost process and re-run the tests to get