thanks zaboo. I guess what i was trying to figure out was:
If in every query on the users table I need to put the condition that
the user or users returned must belong to the session company, it
seems a bit repetetive and therefore was trying to place that
condition on the model to save me some t
You can use an array to specify conditions on searches
http://manual.cakephp.org/view/449/find/
$users = $this->Model->findAll(array('User.companies_id' =>
$_SESSION['user']));
$users = $this->Model->find('list', array('conditions' =>
array('User.companies_id' => $_SESSION['user'])));
You may a