public function addImage(Image $image) { $this->images[] = $image; $image->setBlogPost($this); return $this; }