We are going to deploy the new yiiframework.com website on March 23, 2018 from 8:00 to 12:00 UTC.
Website and Yii documentation will not be available in this time frame. Check the news for more details.


Articles tagged with "cdbcriteria.together", sorted by date (updated)X
Displaying 1-1 of 1 result(s).

1:n relations sometimes require CDbCriteria.together

Updated 4 years ago by fsbTips5 comments – viewed 41,124 times – ( +16 / -1 ) – version 1.1
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider using CDbCriteria to get data from parent and 1:n child table with a condition on the child table.