开发者

Is possible overwriting a Doctrine model in Symfony?

开发者 https://www.devze.com 2022-12-26 04:31 出处:网络
is possible overwriting a Doctrine model in Symfony? I\'m trying no change a \"notnull\" property, but i can get it..

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开发者_如何学Python:
   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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消