public function setPublication(SimpleBlogWrote $blogWrote) { $this->publication = $blogWrote; }
public function createPost($title) { $post = new SimpleBlogPost($title); $wroteRel = new SimpleBlogWrote($this, $post); $this->posts->add($wroteRel); $post->setPublication($wroteRel); }