Currently, Yii allows sentences like this one:
$posts=User::model()->findByPk(1)->posts(array('condition'=>'status=1'));
Nevertheless, I’d like to do something like this:
$criteria = new CDbCriteria();
...
$posts=User::model()->findByPk(1)->posts($criteria);
It will be easier to pass conditions and criteria by this way.
I’d like to find/have this feature on my favorite php framework.
Best regards.