Пример #1
0
 /**
  * Filter the query by a related \gossi\trixionary\model\Kstruktur object
  *
  * @param \gossi\trixionary\model\Kstruktur|ObjectCollection $kstruktur the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildStructureNodeQuery The current query, for fluid interface
  */
 public function filterByKstruktur($kstruktur, $comparison = null)
 {
     if ($kstruktur instanceof \gossi\trixionary\model\Kstruktur) {
         return $this->addUsingAlias(StructureNodeTableMap::COL_ID, $kstruktur->getId(), $comparison);
     } elseif ($kstruktur instanceof ObjectCollection) {
         return $this->useKstrukturQuery()->filterByPrimaryKeys($kstruktur->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByKstruktur() only accepts arguments of type \\gossi\\trixionary\\model\\Kstruktur or Collection');
     }
 }
Пример #2
0
 /**
  * Filter the query by a related \gossi\trixionary\model\Kstruktur object
  *
  * @param \gossi\trixionary\model\Kstruktur|ObjectCollection $kstruktur 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 ChildSkillQuery The current query, for fluid interface
  */
 public function filterByKstrukturRoot($kstruktur, $comparison = null)
 {
     if ($kstruktur instanceof \gossi\trixionary\model\Kstruktur) {
         return $this->addUsingAlias(SkillTableMap::COL_KSTRUKTUR_ID, $kstruktur->getId(), $comparison);
     } elseif ($kstruktur instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(SkillTableMap::COL_KSTRUKTUR_ID, $kstruktur->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByKstrukturRoot() only accepts arguments of type \\gossi\\trixionary\\model\\Kstruktur or Collection');
     }
 }
Пример #3
0
 /**
  * Exclude object from result
  *
  * @param   ChildKstruktur $kstruktur Object to remove from the list of results
  *
  * @return $this|ChildKstrukturQuery The current query, for fluid interface
  */
 public function prune($kstruktur = null)
 {
     if ($kstruktur) {
         $this->addUsingAlias(KstrukturTableMap::COL_ID, $kstruktur->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }