/** * Clears the current object, sets all attributes to their default values and removes * outgoing references as well as back-references (from other objects to this one. Results probably in a database * change of those foreign objects when you call `save` there). */ public function clear() { if (null !== $this->aRigs) { $this->aRigs->removeRigAttributeValues($this); } if (null !== $this->aRigAttributes) { $this->aRigAttributes->removeRigAttributeValues($this); } $this->id = null; $this->rig_id = null; $this->rig_attribute_id = null; $this->value = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \RigAttributes object * * @param \RigAttributes|ObjectCollection $rigAttributes 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 ChildRigAttributeValuesQuery The current query, for fluid interface */ public function filterByRigAttributes($rigAttributes, $comparison = null) { if ($rigAttributes instanceof \RigAttributes) { return $this->addUsingAlias(RigAttributeValuesTableMap::COL_RIG_ATTRIBUTE_ID, $rigAttributes->getId(), $comparison); } elseif ($rigAttributes instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RigAttributeValuesTableMap::COL_RIG_ATTRIBUTE_ID, $rigAttributes->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRigAttributes() only accepts arguments of type \\RigAttributes or Collection'); } }
/** * Exclude object from result * * @param ChildRigAttributes $rigAttributes Object to remove from the list of results * * @return $this|ChildRigAttributesQuery The current query, for fluid interface */ public function prune($rigAttributes = null) { if ($rigAttributes) { $this->addUsingAlias(RigAttributesTableMap::COL_ID, $rigAttributes->getId(), Criteria::NOT_EQUAL); } return $this; }