开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜