コード例 #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildTranslationLanguage $translationLanguage Object to remove from the list of results
  *
  * @return $this|ChildTranslationLanguageQuery The current query, for fluid interface
  */
 public function prune($translationLanguage = null)
 {
     if ($translationLanguage) {
         $this->addUsingAlias(TranslationLanguageTableMap::COL_ID, $translationLanguage->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
コード例 #2
0
 /**
  * Filter the query by a related \App\Models\TranslationLanguage object
  *
  * @param \App\Models\TranslationLanguage|ObjectCollection $translationLanguage 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 ChildTranslationLanguageKeywordQuery The current query, for fluid interface
  */
 public function filterByTranslationLanguage($translationLanguage, $comparison = null)
 {
     if ($translationLanguage instanceof \App\Models\TranslationLanguage) {
         return $this->addUsingAlias(TranslationLanguageKeywordTableMap::COL_LANGUAGE_ID, $translationLanguage->getId(), $comparison);
     } elseif ($translationLanguage instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(TranslationLanguageKeywordTableMap::COL_LANGUAGE_ID, $translationLanguage->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByTranslationLanguage() only accepts arguments of type \\App\\Models\\TranslationLanguage or Collection');
     }
 }
コード例 #3
0
ファイル: AdminUser.php プロジェクト: nstojanovickg/diplomski
 /**
  * Declares an association between this object and a ChildTranslationLanguage object.
  *
  * @param  ChildTranslationLanguage $v
  * @return $this|\App\Models\AdminUser The current object (for fluent API support)
  * @throws PropelException
  */
 public function setTranslationLanguage(ChildTranslationLanguage $v = null)
 {
     if ($v === null) {
         $this->setLanguageId(NULL);
     } else {
         $this->setLanguageId($v->getId());
     }
     $this->aTranslationLanguage = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildTranslationLanguage object, it will not be re-added.
     if ($v !== null) {
         $v->addAdminUser($this);
     }
     return $this;
 }