cakephp find with ID inArray
Posted
by user331321
on Stack Overflow
See other posts from Stack Overflow
or by user331321
Published on 2010-05-03T10:35:36Z
Indexed on
2010/05/03
10:38 UTC
Read the original article
Hit count: 266
Hi!
i have this tables: Clients (id, name, addrees, group,...) Services_Clients (id, client_id, login,passwd) documents (id,client_id,date,path)
clients must be in a group or not, and i can not change the database structure.
1) In a login form, by user/passwd i get an client group 2) after that a get all the clients id from that group like this $jur = $this->Client->find('all', array('conditions' => array('Client.group'=>$group['Client']['group'])));
ok, now, i need to get all documents from the clients of that group, so... how can i achive that? i need to find in my model but getting only with IDs on $jur variable
sorry about my english...
© Stack Overflow or respective owner