示例#1
0
 /**
  * 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;
 }
示例#2
0
文件: Note.php 项目: OneTimeCZ/Tasker
 /**
  * @param ChildSubNote $subNote The ChildSubNote object to add.
  */
 protected function doAddSubNote(ChildSubNote $subNote)
 {
     $this->collSubNotes[] = $subNote;
     $subNote->setNote($this);
 }
示例#3
0
 /**
  * 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');
     }
 }