Пример #1
0
 /**
  * Filter the query by a related \keeko\core\model\GroupAction object
  *
  * @param \keeko\core\model\GroupAction|ObjectCollection $groupAction the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildActionQuery The current query, for fluid interface
  */
 public function filterByGroupAction($groupAction, $comparison = null)
 {
     if ($groupAction instanceof \keeko\core\model\GroupAction) {
         return $this->addUsingAlias(ActionTableMap::COL_ID, $groupAction->getActionId(), $comparison);
     } elseif ($groupAction instanceof ObjectCollection) {
         return $this->useGroupActionQuery()->filterByPrimaryKeys($groupAction->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByGroupAction() only accepts arguments of type \\keeko\\core\\model\\GroupAction or Collection');
     }
 }