/**
  * 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->aRig) {
         $this->aRig->removeRigAttributeValue($this);
     }
     if (null !== $this->aRigAttribute) {
         $this->aRigAttribute->removeRigAttributeValue($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 \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');
     }
 }
 /**
  * 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;
 }