code_junkie

$data findAll query in CakePHP checking values from second table

Nov 13th, 2011
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. $data = $this->Table1->findAll(array("Table1.deleted" => "0"), null, "Table1.id DESC", 25, null, 1);
  2.  
  3. $hasMany = array(
  4. .....
  5. 'required' => true
  6. ....
  7. );
Add Comment
Please, Sign In to add comment