Esempio n. 1
0
 /**
  * Filter the query by a related \keeko\core\model\Api object
  *
  * @param \keeko\core\model\Api|ObjectCollection $api 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 filterByApi($api, $comparison = null)
 {
     if ($api instanceof \keeko\core\model\Api) {
         return $this->addUsingAlias(ActionTableMap::COL_ID, $api->getActionId(), $comparison);
     } elseif ($api instanceof ObjectCollection) {
         return $this->useApiQuery()->filterByPrimaryKeys($api->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByApi() only accepts arguments of type \\keeko\\core\\model\\Api or Collection');
     }
 }