5

新しくインストールされた Symfony 1.4 フレームワークを Doctrine (デフォルトで設定されている) から Propel に適切に切り替えるにはどうすればよいですか?

4

4 に答える 4

5

SQL ステートメントのように見える連鎖オブジェクト メソッド呼び出しが好きな場合は、Doctrine を使用してください。SQL を隠す実際のオブジェクトが好きなら、Propel を使用してください。

自分自身を WHERE 句としてレンダリングする基準オブジェクトを作成したい場合は、Propel を使用してください。SQL に似た WHERE 句を作成したい場合は、Doctrine を使用してください。

両方を同時に使用することもできます。推奨されませんが、Doctrine のみを使用するアポストロフィのようなプラグインを使用する場合、選択の余地がない可能性があります。

于 2010-09-20T05:15:49.853 に答える
5

オブジェクト指向の構文を好む場合は、Propel を使用してください。

于 2010-01-06T08:17:10.393 に答える
1

Replying to the contributors here who wholly recommend Doctrine: the decision is not clear cut, in my view. Propel now also supports chainable query methods, so if you like that approach then both are still in play. Also, the Propel team maintain that the generated nature of model objects makes it faster to run for most use-cases than Doctrine.

于 2011-09-29T18:28:04.277 に答える