/** * Exclude object from result * * @param ChildSubNote $subNote Object to remove from the list of results * * @return $this|ChildSubNoteQuery The current query, for fluid interface */ public function prune($subNote = null) { if ($subNote) { $this->addUsingAlias(SubNoteTableMap::COL_ID, $subNote->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * @param ChildSubNote $subNote The ChildSubNote object to add. */ protected function doAddSubNote(ChildSubNote $subNote) { $this->collSubNotes[] = $subNote; $subNote->setNote($this); }
/** * Filter the query by a related \Models\SubNote object * * @param \Models\SubNote|ObjectCollection $subNote the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildNoteQuery The current query, for fluid interface */ public function filterBySubNote($subNote, $comparison = null) { if ($subNote instanceof \Models\SubNote) { return $this->addUsingAlias(NoteTableMap::COL_ID, $subNote->getNoteId(), $comparison); } elseif ($subNote instanceof ObjectCollection) { return $this->useSubNoteQuery()->filterByPrimaryKeys($subNote->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterBySubNote() only accepts arguments of type \\Models\\SubNote or Collection'); } }