Beispiel #1
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');
     }
 }