Register here!

Forgot password?

ASK NEW QUESTION

Home Page » ACTIVERECORD

Questions tagged as "ACTIVERECORD"

0 Votes

Error in relations

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

By hameedhamdani in Grid View · Asked 174 days 15 hours 51 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes
Solved!

multiple relations and multiple conditions in a named scope

ACTIVERECORDrelationsyii

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

0 Votes

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:

  1. public function relations()
  2.     {
  3.         // NOTE:READ MORE

By haimWD in Active Record · Asked 464 days 5 hours 42 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes
Solved!

Complex SQL

ACTIVERECORDsql

What is a good way to incorporate the following complex SQL into a Yii application?

  1. select * from (
  2.    SELECT * FROM (
  3.       SELECT * FROM tbl_extradata ORDER BY field1 DESC) AS s
  4.    GROUPREAD MORE

By mminnie in Active Record · Asked 522 days 10 hours 48 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

© YiiAnswers.com 2011. All rights reserved.

Switch to our mobile site