/** * Exclude object from result * * @param ChildKeywordSynonym $keywordSynonym Object to remove from the list of results * * @return $this|ChildKeywordSynonymQuery The current query, for fluid interface */ public function prune($keywordSynonym = null) { if ($keywordSynonym) { $this->addUsingAlias(KeywordSynonymTableMap::COL_ID, $keywordSynonym->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * @param ChildKeywordSynonym $keywordSynonym The ChildKeywordSynonym object to add. */ protected function doAddKeywordSynonym(ChildKeywordSynonym $keywordSynonym) { $this->collKeywordSynonyms[] = $keywordSynonym; $keywordSynonym->setKeyword($this); }
/** * Filter the query by a related \KeywordSynonym object * * @param \KeywordSynonym|ObjectCollection $keywordSynonym the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildKeywordQuery The current query, for fluid interface */ public function filterByKeywordSynonym($keywordSynonym, $comparison = null) { if ($keywordSynonym instanceof \KeywordSynonym) { return $this->addUsingAlias(KeywordTableMap::COL_ID, $keywordSynonym->getKeywordId(), $comparison); } elseif ($keywordSynonym instanceof ObjectCollection) { return $this->useKeywordSynonymQuery()->filterByPrimaryKeys($keywordSynonym->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByKeywordSynonym() only accepts arguments of type \\KeywordSynonym or Collection'); } }