I'm trying to define conditions on relationships with Doctrine. Is it possible?
I mean something like this:
class User extends Doctrine_Record
{
public function setUp()
{
$this->hasMany('Article as ReallySpecialArticles', array(
'local' => 'id',
'foreign' => 'user_id',
'conditions' => 'Article.really_special <> 0' // What should this be?
));
}
}