/** * 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->aInvTypes) { $this->aInvTypes->removeDgmTypeEffects($this); } if (null !== $this->aDgmEffects) { $this->aDgmEffects->removeDgmTypeEffects($this); } $this->typeid = null; $this->effectid = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Exclude object from result * * @param ChildDgmEffects $dgmEffects Object to remove from the list of results * * @return $this|ChildDgmEffectsQuery The current query, for fluid interface */ public function prune($dgmEffects = null) { if ($dgmEffects) { $this->addUsingAlias(DgmEffectsTableMap::COL_EFFECTID, $dgmEffects->getEffectid(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \EVE\DgmEffects object * * @param \EVE\DgmEffects|ObjectCollection $dgmEffects 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 ChildDgmTypeEffectsQuery The current query, for fluid interface */ public function filterByDgmEffects($dgmEffects, $comparison = null) { if ($dgmEffects instanceof \EVE\DgmEffects) { return $this->addUsingAlias(DgmTypeEffectsTableMap::COL_EFFECTID, $dgmEffects->getEffectid(), $comparison); } elseif ($dgmEffects instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(DgmTypeEffectsTableMap::COL_EFFECTID, $dgmEffects->toKeyValue('PrimaryKey', 'Effectid'), $comparison); } else { throw new PropelException('filterByDgmEffects() only accepts arguments of type \\EVE\\DgmEffects or Collection'); } }