-1

I am unable to interpret this ORM query from the Kohana 3 ORM framework. Please help me in understanding this:

$member_type_id=ORM::factory("member")->where('id',$videos[$count]->member_id)->find();
Sled
  • 18,541
  • 27
  • 119
  • 168
json
  • 9
  • 1
  • 3
  • 1
    Just a side-note: for Kohana3 ORM, that won't work. The where method expects 3 parameters: `->where('id', '=', $videos[$count]->member_id)` – SpadXIII Aug 12 '11 at 09:04

1 Answers1

0
SELECT * FROM member WHERE id = <$videos[$count]->member_id>

The query will return at most one result.

laurent
  • 88,262
  • 77
  • 290
  • 428
  • when i write this query it gives following error message: $sql = DB::query(Database::SELECT,"select * from member where 'id' = $videos[$count]->member_id); ErrorException [ Recoverable Error ]: Object of class stdClass could not be converted to string – json Aug 12 '11 at 09:04