Esempio n. 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 ChildSkillQuery The current query, for fluid interface
  */
 public function filterByKstrukturRelatedBySkillId($kstruktur, $comparison = null)
 {
     if ($kstruktur instanceof \gossi\trixionary\model\Kstruktur) {
         return $this->addUsingAlias(SkillTableMap::COL_ID, $kstruktur->getSkillId(), $comparison);
     } elseif ($kstruktur instanceof ObjectCollection) {
         return $this->useKstrukturRelatedBySkillIdQuery()->filterByPrimaryKeys($kstruktur->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByKstrukturRelatedBySkillId() only accepts arguments of type \\gossi\\trixionary\\model\\Kstruktur or Collection');
     }
 }