/** * Filter the query by a related \ECP\CompositionEntity object * * @param \ECP\CompositionEntity|ObjectCollection $compositionEntity 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 filterByCompositionEntity($compositionEntity, $comparison = null) { if ($compositionEntity instanceof \ECP\CompositionEntity) { return $this->addUsingAlias(UserTableMap::COL_ID, $compositionEntity->getUserid(), $comparison); } elseif ($compositionEntity instanceof ObjectCollection) { return $this->useCompositionEntityQuery()->filterByPrimaryKeys($compositionEntity->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByCompositionEntity() only accepts arguments of type \\ECP\\CompositionEntity 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->aUser) { $this->aUser->removeCompositionEntity($this); } if (null !== $this->aCompositionEntityRelatedByForkedid) { $this->aCompositionEntityRelatedByForkedid->removeCompositionEntityRelatedById($this); } if (null !== $this->aRulesetEntity) { $this->aRulesetEntity->removeCompositionEntity($this); } $this->id = null; $this->name = null; $this->userid = null; $this->islisted = null; $this->forkedid = null; $this->rulesetentityid = null; $this->lastmodified = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \ECP\CompositionEntity object * * @param \ECP\CompositionEntity|ObjectCollection $compositionEntity 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 ChildCompositionRowQuery The current query, for fluid interface */ public function filterByCompositionEntity($compositionEntity, $comparison = null) { if ($compositionEntity instanceof \ECP\CompositionEntity) { return $this->addUsingAlias(CompositionRowTableMap::COL_COMPOSITIONENTITYID, $compositionEntity->getId(), $comparison); } elseif ($compositionEntity instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(CompositionRowTableMap::COL_COMPOSITIONENTITYID, $compositionEntity->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByCompositionEntity() only accepts arguments of type \\ECP\\CompositionEntity or Collection'); } }
/** * Exclude object from result * * @param ChildCompositionEntity $compositionEntity Object to remove from the list of results * * @return $this|ChildCompositionEntityQuery The current query, for fluid interface */ public function prune($compositionEntity = null) { if ($compositionEntity) { $this->addUsingAlias(CompositionEntityTableMap::COL_ID, $compositionEntity->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * @param ChildCompositionEntity $compositionEntity The ChildCompositionEntity object to add. */ protected function doAddCompositionEntity(ChildCompositionEntity $compositionEntity) { $this->collCompositionEntities[] = $compositionEntity; $compositionEntity->setUser($this); }
/** * 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->aCompositionEntity) { $this->aCompositionEntity->removeCompositionRow($this); } $this->id = null; $this->compositionentityid = null; $this->shipid = null; $this->fitname = null; $this->notes = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }