/** * Return project users by project * * @param Project $project * @return array */ function findByProject($project) { return ProjectUsers::find(array('conditions' => array('project_id = ?', $project->getId()))); }