/**
  * Declares an association between this object and a ChildLang object.
  *
  * @param                  ChildLang $v
  * @return                 \GoogleShopping\Model\GoogleshoppingTaxonomy The current object (for fluent API support)
  * @throws PropelException
  */
 public function setLang(ChildLang $v = null)
 {
     if ($v === null) {
         $this->setLangId(NULL);
     } else {
         $this->setLangId($v->getId());
     }
     $this->aLang = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildLang object, it will not be re-added.
     if ($v !== null) {
         $v->addGoogleshoppingTaxonomy($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related \GoogleShopping\Model\Thelia\Model\Lang object
  *
  * @param \GoogleShopping\Model\Thelia\Model\Lang|ObjectCollection $lang The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildGoogleshoppingTaxonomyQuery The current query, for fluid interface
  */
 public function filterByLang($lang, $comparison = null)
 {
     if ($lang instanceof \GoogleShopping\Model\Thelia\Model\Lang) {
         return $this->addUsingAlias(GoogleshoppingTaxonomyTableMap::LANG_ID, $lang->getId(), $comparison);
     } elseif ($lang instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(GoogleshoppingTaxonomyTableMap::LANG_ID, $lang->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByLang() only accepts arguments of type \\GoogleShopping\\Model\\Thelia\\Model\\Lang or Collection');
     }
 }