/** * Filter the query by a related \RigAttribute object * * @param \RigAttribute|ObjectCollection $rigAttribute 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 ChildRigAttributeValueQuery The current query, for fluid interface */ public function filterByRigAttribute($rigAttribute, $comparison = null) { if ($rigAttribute instanceof \RigAttribute) { return $this->addUsingAlias(RigAttributeValueTableMap::COL_RIG_ATTRIBUTE_ID, $rigAttribute->getId(), $comparison); } elseif ($rigAttribute instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RigAttributeValueTableMap::COL_RIG_ATTRIBUTE_ID, $rigAttribute->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRigAttribute() only accepts arguments of type \\RigAttribute or Collection'); } }
/** * Declares an association between this object and a ChildRigAttribute object. * * @param ChildRigAttribute $v * @return $this|\RigAttributeValue The current object (for fluent API support) * @throws PropelException */ public function setRigAttribute(ChildRigAttribute $v = null) { if ($v === null) { $this->setRigAttributeId(NULL); } else { $this->setRigAttributeId($v->getId()); } $this->aRigAttribute = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildRigAttribute object, it will not be re-added. if ($v !== null) { $v->addRigAttributeValue($this); } return $this; }
/** * Exclude object from result * * @param ChildRigAttribute $rigAttribute Object to remove from the list of results * * @return $this|ChildRigAttributeQuery The current query, for fluid interface */ public function prune($rigAttribute = null) { if ($rigAttribute) { $this->addUsingAlias(RigAttributeTableMap::COL_ID, $rigAttribute->getId(), Criteria::NOT_EQUAL); } return $this; }