/** * Exclude object from result * * @param ChildRegionArea $regionArea Object to remove from the list of results * * @return $this|ChildRegionAreaQuery The current query, for fluid interface */ public function prune($regionArea = null) { if ($regionArea) { $this->addUsingAlias(RegionAreaTableMap::COL_ID, $regionArea->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \keeko\core\model\RegionArea object * * @param \keeko\core\model\RegionArea|ObjectCollection $regionArea 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 ChildRegionTypeQuery The current query, for fluid interface */ public function filterByArea($regionArea, $comparison = null) { if ($regionArea instanceof \keeko\core\model\RegionArea) { return $this->addUsingAlias(RegionTypeTableMap::COL_AREA_ID, $regionArea->getId(), $comparison); } elseif ($regionArea instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RegionTypeTableMap::COL_AREA_ID, $regionArea->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByArea() only accepts arguments of type \\keeko\\core\\model\\RegionArea or Collection'); } }