Questions tagged as "ACTIVERECORD"
Error in relations
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
By hameedhamdani in Grid View · Asked 174 days 15 hours 51 mins ago
Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0
multiple relations and multiple conditions in a named scope
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
By deez in Active Record · Asked 404 days 10 hours 55 mins ago
Questions: 2 Accepted: 0 ( 0% ) | Reputation: 0
CActiveRecord relations with key name
ACTIVERECORDforeign keyrelations
Hello YiiAnswers! i have an CActiveRecord that i want to make it relation to another model, i build my relations method like this:
- public function relations()
- {
- // NOTE:READ MORE
By haimWD in Active Record · Asked 464 days 5 hours 42 mins ago
Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0
Complex SQL
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
By mminnie in Active Record · Asked 522 days 10 hours 48 mins ago
Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0
