Ejemplo n.º 1
0
 /**
  * @param ChildTag $tag The ChildTag object to add.
  */
 protected function doAddTag(ChildTag $tag)
 {
     $this->collTags[] = $tag;
     $tag->setTagType($this);
 }
Ejemplo n.º 2
0
 /**
  * Exclude object from result
  *
  * @param   ChildTag $tag Object to remove from the list of results
  *
  * @return $this|ChildTagQuery The current query, for fluid interface
  */
 public function prune($tag = null)
 {
     if ($tag) {
         $this->addUsingAlias(TagTableMap::COL_ID, $tag->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * @param ChildTag $tag The ChildTag object to add.
  */
 protected function doAddTag(ChildTag $tag)
 {
     $this->collTags[] = $tag;
     $tag->setKeyword($this);
 }
Ejemplo n.º 4
0
 /**
  * Filter the query by a related \Tag object
  *
  * @param \Tag|ObjectCollection $tag the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildVerseQuery The current query, for fluid interface
  */
 public function filterByTag($tag, $comparison = null)
 {
     if ($tag instanceof \Tag) {
         return $this->addUsingAlias(VerseTableMap::COL_ID, $tag->getVerseId(), $comparison);
     } elseif ($tag instanceof ObjectCollection) {
         return $this->useTagQuery()->filterByPrimaryKeys($tag->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByTag() only accepts arguments of type \\Tag or Collection');
     }
 }