public function findByAuthor($authorId) { return $this->getRepository()->findOneBy(array('author' => $authorId)); }