/** * 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; }
/** * Declares an association between this object and a ChildFieldpostprocessor object. * * @param ChildFieldpostprocessor $v * @return $this|\RFieldpostprocessorForfield The current object (for fluent API support) * @throws PropelException */ public function setFieldpostprocessor(ChildFieldpostprocessor $v = null) { if ($v === null) { $this->setPostprocessorid(NULL); } else { $this->setPostprocessorid($v->getId()); } $this->aFieldpostprocessor = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildFieldpostprocessor object, it will not be re-added. if ($v !== null) { $v->addRFieldpostprocessorForfield($this); } 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'); } }