null ); } public function setAuthor(User $user) { $this->author = $user; $this->author->addTicket($this); $this->setProperties(array( 'author' => $this->author->getBeanInstance() )); } public function addComment(Comment $comment) { $this->getBeanInstance()->ownCommentList[] = $comment->getBeanInstance(); } public function store() { parent::store(); if ($this->author instanceof User) { $this->author->store(); } } }