/**
  * Filter the query by a related \ECP\FittingRuleEntity object
  *
  * @param \ECP\FittingRuleEntity|ObjectCollection $fittingRuleEntity the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByFittingRuleEntity($fittingRuleEntity, $comparison = null)
 {
     if ($fittingRuleEntity instanceof \ECP\FittingRuleEntity) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $fittingRuleEntity->getUserid(), $comparison);
     } elseif ($fittingRuleEntity instanceof ObjectCollection) {
         return $this->useFittingRuleEntityQuery()->filterByPrimaryKeys($fittingRuleEntity->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByFittingRuleEntity() only accepts arguments of type \\ECP\\FittingRuleEntity or Collection');
     }
 }
 /**
  * Filter the query by a related \ECP\FittingRuleEntity object
  *
  * @param \ECP\FittingRuleEntity|ObjectCollection $fittingRuleEntity 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 ChildFittingRuleRowQuery The current query, for fluid interface
  */
 public function filterByFittingRuleEntity($fittingRuleEntity, $comparison = null)
 {
     if ($fittingRuleEntity instanceof \ECP\FittingRuleEntity) {
         return $this->addUsingAlias(FittingRuleRowTableMap::COL_FITTINGRULEENTITYID, $fittingRuleEntity->getId(), $comparison);
     } elseif ($fittingRuleEntity instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(FittingRuleRowTableMap::COL_FITTINGRULEENTITYID, $fittingRuleEntity->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByFittingRuleEntity() only accepts arguments of type \\ECP\\FittingRuleEntity or Collection');
     }
 }
 /**
  * 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->aRulesetRuleRow) {
         $this->aRulesetRuleRow->removeRulesetFilterRule($this);
     }
     if (null !== $this->aconcatenationObj) {
         $this->aconcatenationObj->removeRulesetFilterRuleRelatedByConcatenation($this);
     }
     if (null !== $this->aFittingRuleEntity) {
         $this->aFittingRuleEntity->removeRulesetFilterRule($this);
     }
     if (null !== $this->acomparisonObj) {
         $this->acomparisonObj->removeRulesetFilterRuleRelatedByComparison($this);
     }
     $this->id = null;
     $this->rulesetrulerowid = null;
     $this->ind3x = null;
     $this->concatenation = null;
     $this->fittingruleentityid = null;
     $this->comparison = null;
     $this->value = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * 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->aUser) {
         $this->aUser->removeFittingRuleEntity($this);
     }
     if (null !== $this->aFittingRuleEntityRelatedByForkedid) {
         $this->aFittingRuleEntityRelatedByForkedid->removeFittingRuleEntityRelatedById($this);
     }
     $this->id = null;
     $this->name = null;
     $this->userid = null;
     $this->isglobal = null;
     $this->islisted = null;
     $this->forkedid = null;
     $this->isfiltertypeuptodate = null;
     $this->lastmodified = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Exclude object from result
  *
  * @param   ChildFittingRuleEntity $fittingRuleEntity Object to remove from the list of results
  *
  * @return $this|ChildFittingRuleEntityQuery The current query, for fluid interface
  */
 public function prune($fittingRuleEntity = null)
 {
     if ($fittingRuleEntity) {
         $this->addUsingAlias(FittingRuleEntityTableMap::COL_ID, $fittingRuleEntity->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * @param ChildFittingRuleEntity $fittingRuleEntity The ChildFittingRuleEntity object to add.
  */
 protected function doAddFittingRuleEntity(ChildFittingRuleEntity $fittingRuleEntity)
 {
     $this->collFittingRuleEntities[] = $fittingRuleEntity;
     $fittingRuleEntity->setUser($this);
 }