/** * @param GalleryImage $galleryImage The galleryImage object to add. */ protected function doAddGalleryImage($galleryImage) { $this->collGalleryImages[] = $galleryImage; $galleryImage->setGalleryFolder($this); }