/** * Declares an association between this object and a GalleryImage object. * * @param GalleryImage $v * @return GalleryImageSize The current object (for fluent API support) * @throws PropelException */ public function setGalleryImage(GalleryImage $v = null) { if ($v === null) { $this->setGalleryImageId(NULL); } else { $this->setGalleryImageId($v->getId()); } $this->aGalleryImage = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the GalleryImage object, it will not be re-added. if ($v !== null) { $v->addGalleryImageSize($this); } return $this; }