/** * Exclude object from result * * @param ChildLanguageScript $languageScript Object to remove from the list of results * * @return $this|ChildLanguageScriptQuery The current query, for fluid interface */ public function prune($languageScript = null) { if ($languageScript) { $this->addUsingAlias(LanguageScriptTableMap::COL_ID, $languageScript->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a ChildLanguageScript object. * * @param ChildLanguageScript $v * @return $this|\keeko\core\model\Localization The current object (for fluent API support) * @throws PropelException */ public function setScript(ChildLanguageScript $v = null) { if ($v === null) { $this->setScriptId(NULL); } else { $this->setScriptId($v->getId()); } $this->aScript = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildLanguageScript object, it will not be re-added. if ($v !== null) { $v->addLocalization($this); } return $this; }
/** * Filter the query by a related \keeko\core\model\LanguageScript object * * @param \keeko\core\model\LanguageScript|ObjectCollection $languageScript 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 ChildLanguageQuery The current query, for fluid interface */ public function filterByScript($languageScript, $comparison = null) { if ($languageScript instanceof \keeko\core\model\LanguageScript) { return $this->addUsingAlias(LanguageTableMap::COL_DEFAULT_SCRIPT_ID, $languageScript->getId(), $comparison); } elseif ($languageScript instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(LanguageTableMap::COL_DEFAULT_SCRIPT_ID, $languageScript->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByScript() only accepts arguments of type \\keeko\\core\\model\\LanguageScript or Collection'); } }