Exemple #1
0
 /**
  * Filter the query by a related \gossi\trixionary\model\FunctionPhase object
  *
  * @param \gossi\trixionary\model\FunctionPhase|ObjectCollection $functionPhase 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 filterByFunctionPhaseRoot($functionPhase, $comparison = null)
 {
     if ($functionPhase instanceof \gossi\trixionary\model\FunctionPhase) {
         return $this->addUsingAlias(SkillTableMap::COL_FUNCTION_PHASE_ID, $functionPhase->getId(), $comparison);
     } elseif ($functionPhase instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(SkillTableMap::COL_FUNCTION_PHASE_ID, $functionPhase->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByFunctionPhaseRoot() only accepts arguments of type \\gossi\\trixionary\\model\\FunctionPhase or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildFunctionPhase $functionPhase Object to remove from the list of results
  *
  * @return $this|ChildFunctionPhaseQuery The current query, for fluid interface
  */
 public function prune($functionPhase = null)
 {
     if ($functionPhase) {
         $this->addUsingAlias(FunctionPhaseTableMap::COL_ID, $functionPhase->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * Filter the query by a related \gossi\trixionary\model\FunctionPhase object
  *
  * @param \gossi\trixionary\model\FunctionPhase|ObjectCollection $functionPhase 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 filterByFunctionPhase($functionPhase, $comparison = null)
 {
     if ($functionPhase instanceof \gossi\trixionary\model\FunctionPhase) {
         return $this->addUsingAlias(StructureNodeTableMap::COL_ID, $functionPhase->getId(), $comparison);
     } elseif ($functionPhase instanceof ObjectCollection) {
         return $this->useFunctionPhaseQuery()->filterByPrimaryKeys($functionPhase->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByFunctionPhase() only accepts arguments of type \\gossi\\trixionary\\model\\FunctionPhase or Collection');
     }
 }