/** * Exclude object from result * * @param ChildObjectServices $objectServices Object to remove from the list of results * * @return $this|ChildObjectServicesQuery The current query, for fluid interface */ public function prune($objectServices = null) { if ($objectServices) { $this->addCond('pruneCond0', $this->getAliasedColName(ObjectServicesTableMap::COL_ID_OBJECT), $objectServices->getIdObject(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(ObjectServicesTableMap::COL_ID_SERVICES), $objectServices->getIdServices(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }
/** * Filter the query by a related \ObjectServices object * * @param \ObjectServices|ObjectCollection $objectServices the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildServicesQuery The current query, for fluid interface */ public function filterByObjectServices($objectServices, $comparison = null) { if ($objectServices instanceof \ObjectServices) { return $this->addUsingAlias(ServicesTableMap::COL_ID, $objectServices->getIdServices(), $comparison); } elseif ($objectServices instanceof ObjectCollection) { return $this->useObjectServicesQuery()->filterByPrimaryKeys($objectServices->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByObjectServices() only accepts arguments of type \\ObjectServices or Collection'); } }