/** * Exclude object from result * * @param ChildRigAttributeValues $rigAttributeValues Object to remove from the list of results * * @return $this|ChildRigAttributeValuesQuery The current query, for fluid interface */ public function prune($rigAttributeValues = null) { if ($rigAttributeValues) { $this->addUsingAlias(RigAttributeValuesTableMap::COL_ID, $rigAttributeValues->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * @param ChildRigAttributeValues $rigAttributeValues The ChildRigAttributeValues object to add. */ protected function doAddRigAttributeValues(ChildRigAttributeValues $rigAttributeValues) { $this->collRigAttributeValuess[] = $rigAttributeValues; $rigAttributeValues->setRigs($this); }
/** * Filter the query by a related \RigAttributeValues object * * @param \RigAttributeValues|ObjectCollection $rigAttributeValues the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildRigAttributesQuery The current query, for fluid interface */ public function filterByRigAttributeValues($rigAttributeValues, $comparison = null) { if ($rigAttributeValues instanceof \RigAttributeValues) { return $this->addUsingAlias(RigAttributesTableMap::COL_ID, $rigAttributeValues->getRigAttributeId(), $comparison); } elseif ($rigAttributeValues instanceof ObjectCollection) { return $this->useRigAttributeValuesQuery()->filterByPrimaryKeys($rigAttributeValues->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRigAttributeValues() only accepts arguments of type \\RigAttributeValues or Collection'); } }