I have a rather complex query that uses sub-selects and joins that have sub-selects.
Since it is difficult to create this query using CDbCriteria, I was wondering if there is any way that we can pass in the custom query into CActiveDataProvider, possibly using findAllBySql or something similar?
Since it is difficult to create this query using CDbCriteria, I was wondering if there is any way that we can pass in the custom query into CActiveDataProvider, possibly using findAllBySql or something similar?