/** * 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->aFieldpostprocessor) { $this->aFieldpostprocessor->removeRFieldpostprocessorForfield($this); } if (null !== $this->aTemplates) { $this->aTemplates->removeRFieldpostprocessorForfield($this); } $this->_postprocessorid = null; $this->_templateid = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Exclude object from result * * @param ChildFieldpostprocessor $fieldpostprocessor Object to remove from the list of results * * @return $this|ChildFieldpostprocessorQuery The current query, for fluid interface */ public function prune($fieldpostprocessor = null) { if ($fieldpostprocessor) { $this->addUsingAlias(FieldpostprocessorTableMap::COL_ID, $fieldpostprocessor->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \Fieldpostprocessor object * * @param \Fieldpostprocessor|ObjectCollection $fieldpostprocessor 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 ChildRFieldpostprocessorForfieldQuery The current query, for fluid interface */ public function filterByFieldpostprocessor($fieldpostprocessor, $comparison = null) { if ($fieldpostprocessor instanceof \Fieldpostprocessor) { return $this->addUsingAlias(RFieldpostprocessorForfieldTableMap::COL__POSTPROCESSORID, $fieldpostprocessor->getId(), $comparison); } elseif ($fieldpostprocessor instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RFieldpostprocessorForfieldTableMap::COL__POSTPROCESSORID, $fieldpostprocessor->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByFieldpostprocessor() only accepts arguments of type \\Fieldpostprocessor or Collection'); } }