开发者

How to use propel as a default ORM in symfony

I am new to symfony,I want to create a application using Symfony framework using propel as ORM(Model),But I don't know to how to set Propel as a OR开发者_开发百科M instead of using Doctrine I just want to use propel alone.symfony has released new version with Doctrine as a defult ORM.So Please suggest how to change it to propel..Thanks in advance


For Symfony 1.4, quoting the manual :

Configuring the database

[...]

If you want to use Propel instead of Doctrine, add --orm=Propel when creating the project with the generate:project task. And if you don't want to use an ORM, just pass --orm=none.

However if you want the last Propel version, I guess that you will have to install the Propel15Plugin (for details on how to install that plugin, see the Readme tab on the Symfony Propel15Plugin page).

For Symfony 2.0, this slideshow explains how to integrate Propel 1.5.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜