public function findByUser($user) { if (empty($user)) { return array(); } return $this->findBy(array('user' => is_numeric($user) ? $user : $user->getId()), array('id' => 'desc'), 1000); }