/** * Clears the current object, sets all attributes to their default values and removes * outgoing references as well as back-references (from other objects to this one. Results probably in a database * change of those foreign objects when you call `save` there). */ public function clear() { if (null !== $this->aBible) { $this->aBible->removePassage($this); } if (null !== $this->aVerse) { $this->aVerse->removePassage($this); } $this->bible_id = null; $this->text = null; $this->verse_id = null; $this->id = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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; }
/** * 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'); } }