开发者

yaml files to create models are the same in Doctrine 2.0?

i wonder if开发者_开发百科 the yaml files for creating models in Doctrine 2 are the same as those in Doctrine 1.2?


No they are not the same. You can check the new syntax in the doctrine documentation.

Note that annotation seems to be the prefered way to map entities in Doctrine 2 (see annotation reference and basic mapping).

Edit: seems like there is a tool converting Doctrine 1.x schema to Doctrine 2 schema. I can't test here right now but you can try it. See documentation here.

doctrine orm:convert-d1-schema
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜