Example #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildBrandDocument $brandDocument Object to remove from the list of results
  *
  * @return ChildBrandDocumentQuery The current query, for fluid interface
  */
 public function prune($brandDocument = null)
 {
     if ($brandDocument) {
         $this->addUsingAlias(BrandDocumentTableMap::ID, $brandDocument->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Example #2
0
 /**
  * Declares an association between this object and a ChildBrandDocument object.
  *
  * @param                  ChildBrandDocument $v
  * @return                 \Thelia\Model\BrandDocumentI18n The current object (for fluent API support)
  * @throws PropelException
  */
 public function setBrandDocument(ChildBrandDocument $v = null)
 {
     if ($v === null) {
         $this->setId(NULL);
     } else {
         $this->setId($v->getId());
     }
     $this->aBrandDocument = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildBrandDocument object, it will not be re-added.
     if ($v !== null) {
         $v->addBrandDocumentI18n($this);
     }
     return $this;
 }
Example #3
0
 /**
  * Filter the query by a related \Thelia\Model\BrandDocument object
  *
  * @param \Thelia\Model\BrandDocument|ObjectCollection $brandDocument  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildBrandQuery The current query, for fluid interface
  */
 public function filterByBrandDocument($brandDocument, $comparison = null)
 {
     if ($brandDocument instanceof \Thelia\Model\BrandDocument) {
         return $this->addUsingAlias(BrandTableMap::ID, $brandDocument->getBrandId(), $comparison);
     } elseif ($brandDocument instanceof ObjectCollection) {
         return $this->useBrandDocumentQuery()->filterByPrimaryKeys($brandDocument->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByBrandDocument() only accepts arguments of type \\Thelia\\Model\\BrandDocument or Collection');
     }
 }
 /**
  * Filter the query by a related \Thelia\Model\BrandDocument object
  *
  * @param \Thelia\Model\BrandDocument|ObjectCollection $brandDocument The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildBrandDocumentI18nQuery The current query, for fluid interface
  */
 public function filterByBrandDocument($brandDocument, $comparison = null)
 {
     if ($brandDocument instanceof \Thelia\Model\BrandDocument) {
         return $this->addUsingAlias(BrandDocumentI18nTableMap::ID, $brandDocument->getId(), $comparison);
     } elseif ($brandDocument instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(BrandDocumentI18nTableMap::ID, $brandDocument->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByBrandDocument() only accepts arguments of type \\Thelia\\Model\\BrandDocument or Collection');
     }
 }