In Doctrine i can do:
$article = Doctrine::getTable('Article')->createQuery('a')->where('a.user_id = ?', $this->getUser()->getAttribute('id') )->fetchOne()
and
$article = Doctrine::getTable('Article')->findBy('user_id', $this->getUser()->getAttribute('id'));
How can i make it in Propel?
I use Symfony 1
Propel is pretty simple. I’m giving you a propel 1.4 answer. These look like the same query.