/** * 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->aRulesetEntity) { $this->aRulesetEntity->removeRulesetRuleRow($this); } $this->id = null; $this->rulesetentityid = null; $this->ind3x = null; $this->message = 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->aRulesetEntity) { $this->aRulesetEntity->removeRulesetShip($this); } $this->id = null; $this->rulesetentityid = null; $this->shipid = null; $this->points = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \ECP\RulesetEntity object * * @param \ECP\RulesetEntity|ObjectCollection $rulesetEntity 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 filterByRulesetEntity($rulesetEntity, $comparison = null) { if ($rulesetEntity instanceof \ECP\RulesetEntity) { return $this->addUsingAlias(UserTableMap::COL_ID, $rulesetEntity->getUserid(), $comparison); } elseif ($rulesetEntity instanceof ObjectCollection) { return $this->useRulesetEntityQuery()->filterByPrimaryKeys($rulesetEntity->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRulesetEntity() only accepts arguments of type \\ECP\\RulesetEntity 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\RulesetEntity object * * @param \ECP\RulesetEntity|ObjectCollection $rulesetEntity 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 ChildRulesetShipQuery The current query, for fluid interface */ public function filterByRulesetEntity($rulesetEntity, $comparison = null) { if ($rulesetEntity instanceof \ECP\RulesetEntity) { return $this->addUsingAlias(RulesetShipTableMap::COL_RULESETENTITYID, $rulesetEntity->getId(), $comparison); } elseif ($rulesetEntity instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RulesetShipTableMap::COL_RULESETENTITYID, $rulesetEntity->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByRulesetEntity() only accepts arguments of type \\ECP\\RulesetEntity or Collection'); } }
/** * Exclude object from result * * @param ChildRulesetEntity $rulesetEntity Object to remove from the list of results * * @return $this|ChildRulesetEntityQuery The current query, for fluid interface */ public function prune($rulesetEntity = null) { if ($rulesetEntity) { $this->addUsingAlias(RulesetEntityTableMap::COL_ID, $rulesetEntity->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * @param ChildRulesetEntity $rulesetEntity The ChildRulesetEntity object to add. */ protected function doAddRulesetEntity(ChildRulesetEntity $rulesetEntity) { $this->collRulesetEntities[] = $rulesetEntity; $rulesetEntity->setUser($this); }