Hi,
I'm trying to do a join across 3 tables like so:
This fails Column not found: 1054 Unknown column 'items.date_expired'
The Seller Model has both relations, the company model doesn't have an items relation. If that would be the reason?
I'm trying to do a join across 3 tables like so:
$model=new CActiveDataProvider('Seller', array( 'criteria' => array( 'with' => array('company','items'), 'condition' => 't.company_id IS NOT NULL AND items.date_expired > CURDATE()' ) ));
This fails Column not found: 1054 Unknown column 'items.date_expired'
The Seller Model has both relations, the company model doesn't have an items relation. If that would be the reason?