/** * Delete relations by $user * * @param User $user * @return boolean */ function deleteByUser($user) { return ProjectUsers::delete(array('user_id = ?', $user->getId())); }