/** * Filter the query by a related \TagType object * * @param \TagType|ObjectCollection $tagType 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 filterByTagType($tagType, $comparison = null) { if ($tagType instanceof \TagType) { return $this->addUsingAlias(TagTableMap::COL_TYPE_ID, $tagType->getId(), $comparison); } elseif ($tagType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(TagTableMap::COL_TYPE_ID, $tagType->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByTagType() only accepts arguments of type \\TagType or Collection'); } }
/** * 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); }