/** * Exclude object from result * * @param ChildBible $bible Object to remove from the list of results * * @return $this|ChildBibleQuery The current query, for fluid interface */ public function prune($bible = null) { if ($bible) { $this->addUsingAlias(BibleTableMap::COL_ID, $bible->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a ChildBible object. * * @param ChildBible $v * @return $this|\Passage The current object (for fluent API support) * @throws PropelException */ public function setBible(ChildBible $v = null) { if ($v === null) { $this->setBibleId(NULL); } else { $this->setBibleId($v->getId()); } $this->aBible = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildBible object, it will not be re-added. if ($v !== null) { $v->addPassage($this); } return $this; }
/** * Filter the query by a related \Bible object * * @param \Bible|ObjectCollection $bible 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 ChildPassageQuery The current query, for fluid interface */ public function filterByBible($bible, $comparison = null) { if ($bible instanceof \Bible) { return $this->addUsingAlias(PassageTableMap::COL_BIBLE_ID, $bible->getId(), $comparison); } elseif ($bible instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(PassageTableMap::COL_BIBLE_ID, $bible->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByBible() only accepts arguments of type \\Bible or Collection'); } }