예제 #1
0
파일: Bible.php 프로젝트: arneau/godsworks
 /**
  * @param ChildPassage $passage The ChildPassage object to add.
  */
 protected function doAddPassage(ChildPassage $passage)
 {
     $this->collPassages[] = $passage;
     $passage->setBible($this);
 }
예제 #2
0
 /**
  * Filter the query by a related \Passage object
  *
  * @param \Passage|ObjectCollection $passage the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildBibleQuery The current query, for fluid interface
  */
 public function filterByPassage($passage, $comparison = null)
 {
     if ($passage instanceof \Passage) {
         return $this->addUsingAlias(BibleTableMap::COL_ID, $passage->getBibleId(), $comparison);
     } elseif ($passage instanceof ObjectCollection) {
         return $this->usePassageQuery()->filterByPrimaryKeys($passage->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByPassage() only accepts arguments of type \\Passage or Collection');
     }
 }
예제 #3
0
 /**
  * Exclude object from result
  *
  * @param   ChildPassage $passage Object to remove from the list of results
  *
  * @return $this|ChildPassageQuery The current query, for fluid interface
  */
 public function prune($passage = null)
 {
     if ($passage) {
         $this->addUsingAlias(PassageTableMap::COL_ID, $passage->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }