【发布时间】:2011-12-27 20:05:57
【问题描述】:
在教义中我可以做到:
$article = Doctrine::getTable('Article')->createQuery('a')->where('a.user_id = ?', $this->getUser()->getAttribute('id') )->fetchOne()
和
$article = Doctrine::getTable('Article')->findBy('user_id', $this->getUser()->getAttribute('id'));
我怎样才能在 Propel 中做到这一点? 我使用 Symfony 1
【问题讨论】:
标签: php symfony1 doctrine symfony-1.4 propel