Questions tagged as "ACTIVERECORD"
when i run this page following error occurs. Trying to get property of non-object , and C:\wamp\www\yii\framework\base\CComponent.php(607) : eval()’d code(1) i want to display a coumn from another model usingREAD MORE
I am trying to apply 2 conditions based on data from different tables inside a named scope. I know my relations are right because if i remove the second conditionREAD MORE
Hello YiiAnswers! i have an CActiveRecord that i want to make it relation to another model, i build my relations method like this:
What is a good way to incorporate the following complex SQL into a Yii application?
- select * from (
- SELECT * FROM (
- SELECT * FROM tbl_extradata ORDER BY field1 DESC) AS s
- GROUPREAD MORE