/** * 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->aKeyword) { $this->aKeyword->removeKeywordSynonym($this); } $this->keyword_id = null; $this->value = null; $this->id = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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->aKeyword) { $this->aKeyword->removeTag($this); } if (null !== $this->aTagType) { $this->aTagType->removeTag($this); } if (null !== $this->aVerse) { $this->aVerse->removeTag($this); } $this->keyword_id = null; $this->type_id = null; $this->verse_id = null; $this->id = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \Keyword object * * @param \Keyword|ObjectCollection $keyword 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 ChildTagQuery The current query, for fluid interface */ public function filterByKeyword($keyword, $comparison = null) { if ($keyword instanceof \Keyword) { return $this->addUsingAlias(TagTableMap::COL_KEYWORD_ID, $keyword->getId(), $comparison); } elseif ($keyword instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(TagTableMap::COL_KEYWORD_ID, $keyword->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByKeyword() only accepts arguments of type \\Keyword or Collection'); } }
/** * Exclude object from result * * @param ChildKeyword $keyword Object to remove from the list of results * * @return $this|ChildKeywordQuery The current query, for fluid interface */ public function prune($keyword = null) { if ($keyword) { $this->addUsingAlias(KeywordTableMap::COL_ID, $keyword->getId(), Criteria::NOT_EQUAL); } return $this; }