public function getLikes() { if (!$this->getId()) { return array(); } if (is_null($this->_likes)) { $like = new Comment_Model_Like(); $this->_likes = $like->findByComment($this->getId()); foreach ($this->_likes as $like) { $like->setComment($this); } } return $this->_likes; }