/**
  * Filter the query by a related \Thelia\Model\ContentImage object
  *
  * @param \Thelia\Model\ContentImage|ObjectCollection $contentImage The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildContentImageI18nQuery The current query, for fluid interface
  */
 public function filterByContentImage($contentImage, $comparison = null)
 {
     if ($contentImage instanceof \Thelia\Model\ContentImage) {
         return $this->addUsingAlias(ContentImageI18nTableMap::ID, $contentImage->getId(), $comparison);
     } elseif ($contentImage instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ContentImageI18nTableMap::ID, $contentImage->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByContentImage() only accepts arguments of type \\Thelia\\Model\\ContentImage or Collection');
     }
 }