views:

147

answers:

1

Hi,

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

+1  A: 

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.

Steve