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