/** * Exclude object from result * * @param ChildFitEntryType $fitEntryType Object to remove from the list of results * * @return $this|ChildFitEntryTypeQuery The current query, for fluid interface */ public function prune($fitEntryType = null) { if ($fitEntryType) { $this->addUsingAlias(FitEntryTypeTableMap::COL_ID, $fitEntryType->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \ECP\FitEntryType object * * @param \ECP\FitEntryType|ObjectCollection $fitEntryType 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 ChildFitEntryQuery The current query, for fluid interface */ public function filterByFitEntryType($fitEntryType, $comparison = null) { if ($fitEntryType instanceof \ECP\FitEntryType) { return $this->addUsingAlias(FitEntryTableMap::COL_FITENTRYTYPEID, $fitEntryType->getId(), $comparison); } elseif ($fitEntryType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(FitEntryTableMap::COL_FITENTRYTYPEID, $fitEntryType->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByFitEntryType() only accepts arguments of type \\ECP\\FitEntryType 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->aCompositionRow) { $this->aCompositionRow->removeFitEntry($this); } if (null !== $this->aFitEntryType) { $this->aFitEntryType->removeFitEntry($this); } $this->id = null; $this->compositionrowid = null; $this->ind3x = null; $this->fitentrytypeid = null; $this->itemid = null; $this->ammoid = null; $this->amount = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }