Is possible overwriting a Doctrine model in Symfony?

Posted by user248959 on Stack Overflow See other posts from Stack Overflow or by user248959
Published on 2010-04-11T17:43:25Z Indexed on 2010/04/11 21:33 UTC
Read the original article Hit count: 223

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about symfony

Related posts about doctrine