public function getPeer() { if (self::$peer === null) { self::$peer = new GalleryPeer(); } return self::$peer; }
public function delete() { foreach ($this->galleryPhotos as $photo) { $photo->delete(); } return parent::delete(); }