yiisoft/yii — Issue #396: CdbCriteria compare with deep relations
Author: retuam
Created: 2012-02-24 11:10:54+00:00
State: open

If compare method for CdbCriteria implements relation BELONGS_TO with another relations, for example, or more deepest, as $criteria->with = array('nodeRel1'=>array('with'=>array('nodeRel2'))..., nodeRel1.nodeRel2.field selection generates Exeption, because «nodeRel2.field» not exists in table nodeRel1. It can be use next field selection nodeRel2.field, but nodeRel2 doesn't have any same one.