Пример #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildInseeGeoDepartment $inseeGeoDepartment Object to remove from the list of results
  *
  * @return ChildInseeGeoDepartmentQuery The current query, for fluid interface
  */
 public function prune($inseeGeoDepartment = null)
 {
     if ($inseeGeoDepartment) {
         $this->addUsingAlias(InseeGeoDepartmentTableMap::ID, $inseeGeoDepartment->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Filter the query by a related \INSEEGeo\Model\InseeGeoDepartment object
  *
  * @param \INSEEGeo\Model\InseeGeoDepartment|ObjectCollection $inseeGeoDepartment The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildInseeGeoDepartmentI18nQuery The current query, for fluid interface
  */
 public function filterByInseeGeoDepartment($inseeGeoDepartment, $comparison = null)
 {
     if ($inseeGeoDepartment instanceof \INSEEGeo\Model\InseeGeoDepartment) {
         return $this->addUsingAlias(InseeGeoDepartmentI18nTableMap::ID, $inseeGeoDepartment->getId(), $comparison);
     } elseif ($inseeGeoDepartment instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(InseeGeoDepartmentI18nTableMap::ID, $inseeGeoDepartment->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByInseeGeoDepartment() only accepts arguments of type \\INSEEGeo\\Model\\InseeGeoDepartment or Collection');
     }
 }
 /**
  * Declares an association between this object and a ChildInseeGeoDepartment object.
  *
  * @param                  ChildInseeGeoDepartment $v
  * @return                 \INSEEGeo\Model\InseeGeoDepartmentI18n The current object (for fluent API support)
  * @throws PropelException
  */
 public function setInseeGeoDepartment(ChildInseeGeoDepartment $v = null)
 {
     if ($v === null) {
         $this->setId(NULL);
     } else {
         $this->setId($v->getId());
     }
     $this->aInseeGeoDepartment = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildInseeGeoDepartment object, it will not be re-added.
     if ($v !== null) {
         $v->addInseeGeoDepartmentI18n($this);
     }
     return $this;
 }
Пример #4
0
 /**
  * Filter the query by a related \INSEEGeo\Model\InseeGeoDepartment object
  *
  * @param \INSEEGeo\Model\InseeGeoDepartment|ObjectCollection $inseeGeoDepartment  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildInseeGeoRegionQuery The current query, for fluid interface
  */
 public function filterByInseeGeoDepartment($inseeGeoDepartment, $comparison = null)
 {
     if ($inseeGeoDepartment instanceof \INSEEGeo\Model\InseeGeoDepartment) {
         return $this->addUsingAlias(InseeGeoRegionTableMap::ID, $inseeGeoDepartment->getRegionId(), $comparison);
     } elseif ($inseeGeoDepartment instanceof ObjectCollection) {
         return $this->useInseeGeoDepartmentQuery()->filterByPrimaryKeys($inseeGeoDepartment->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByInseeGeoDepartment() only accepts arguments of type \\INSEEGeo\\Model\\InseeGeoDepartment or Collection');
     }
 }