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