/** * Filter the query by a related \Models\ImageGalleryMap object * * @param \Models\ImageGalleryMap|ObjectCollection $imageGalleryMap the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildImageQuery The current query, for fluid interface */ public function filterByImageGalleryMap($imageGalleryMap, $comparison = null) { if ($imageGalleryMap instanceof \Models\ImageGalleryMap) { return $this->addUsingAlias(ImageTableMap::COL_ID, $imageGalleryMap->getIdImage(), $comparison); } elseif ($imageGalleryMap instanceof ObjectCollection) { return $this->useImageGalleryMapQuery()->filterByPrimaryKeys($imageGalleryMap->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByImageGalleryMap() only accepts arguments of type \\Models\\ImageGalleryMap or Collection'); } }