Ejemplo n.º 1
0
 /**
  * Filter the query by a related \keeko\core\model\Localization object
  *
  * @param \keeko\core\model\Localization|ObjectCollection $localization The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildApplicationUriQuery The current query, for fluid interface
  */
 public function filterByLocalization($localization, $comparison = null)
 {
     if ($localization instanceof \keeko\core\model\Localization) {
         return $this->addUsingAlias(ApplicationUriTableMap::COL_LOCALIZATION_ID, $localization->getId(), $comparison);
     } elseif ($localization instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ApplicationUriTableMap::COL_LOCALIZATION_ID, $localization->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByLocalization() only accepts arguments of type \\keeko\\core\\model\\Localization or Collection');
     }
 }
Ejemplo n.º 2
0
 /**
  * Declares an association between this object and a ChildLocalization object.
  *
  * @param  ChildLocalization $v
  * @return $this|\keeko\core\model\Localization The current object (for fluent API support)
  * @throws PropelException
  */
 public function setParent(ChildLocalization $v = null)
 {
     if ($v === null) {
         $this->setParentId(NULL);
     } else {
         $this->setParentId($v->getId());
     }
     $this->aParent = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildLocalization object, it will not be re-added.
     if ($v !== null) {
         $v->addLocalizationRelatedById($this);
     }
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * Exclude object from result
  *
  * @param   ChildLocalization $localization Object to remove from the list of results
  *
  * @return $this|ChildLocalizationQuery The current query, for fluid interface
  */
 public function prune($localization = null)
 {
     if ($localization) {
         $this->addUsingAlias(LocalizationTableMap::COL_ID, $localization->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }