Example #1
0
 /**
  * Filter the query by a related \iuf\junia\model\Routine object
  *
  * @param \iuf\junia\model\Routine|ObjectCollection $routine the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildStartgroupQuery The current query, for fluid interface
  */
 public function filterByRoutine($routine, $comparison = null)
 {
     if ($routine instanceof \iuf\junia\model\Routine) {
         return $this->addUsingAlias(StartgroupTableMap::COL_ID, $routine->getStartgroupId(), $comparison);
     } elseif ($routine instanceof ObjectCollection) {
         return $this->useRoutineQuery()->filterByPrimaryKeys($routine->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByRoutine() only accepts arguments of type \\iuf\\junia\\model\\Routine or Collection');
     }
 }