开发者

How to use propel as a default ORM in symfony

开发者 https://www.devze.com 2023-03-22 09:22 出处:网络
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 wa

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

精彩评论

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

关注公众号