Пример #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildConfigCategory $configCategory Object to remove from the list of results
  *
  * @return $this|ChildConfigCategoryQuery The current query, for fluid interface
  */
 public function prune($configCategory = null)
 {
     if ($configCategory) {
         $this->addUsingAlias(ConfigCategoryTableMap::COL_CONFIG_CATEGORY_ID, $configCategory->getConfigCategoryId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Пример #2
0
 /**
  * Filter the query by a related \App\Propel\ConfigCategory object
  *
  * @param \App\Propel\ConfigCategory|ObjectCollection $configCategory 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 ChildConfigCategoryI18nQuery The current query, for fluid interface
  */
 public function filterByConfigCategory($configCategory, $comparison = null)
 {
     if ($configCategory instanceof \App\Propel\ConfigCategory) {
         return $this->addUsingAlias(ConfigCategoryI18nTableMap::COL_CONFIG_CATEGORY_ID, $configCategory->getConfigCategoryId(), $comparison);
     } elseif ($configCategory instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ConfigCategoryI18nTableMap::COL_CONFIG_CATEGORY_ID, $configCategory->toKeyValue('PrimaryKey', 'ConfigCategoryId'), $comparison);
     } else {
         throw new PropelException('filterByConfigCategory() only accepts arguments of type \\App\\Propel\\ConfigCategory or Collection');
     }
 }
Пример #3
0
 /**
  * Declares an association between this object and a ChildConfigCategory object.
  *
  * @param  ChildConfigCategory $v
  * @return $this|\App\Propel\Config The current object (for fluent API support)
  * @throws PropelException
  */
 public function setConfigCategory(ChildConfigCategory $v = null)
 {
     if ($v === null) {
         $this->setConfigCategoryId(NULL);
     } else {
         $this->setConfigCategoryId($v->getConfigCategoryId());
     }
     $this->aConfigCategory = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildConfigCategory object, it will not be re-added.
     if ($v !== null) {
         $v->addConfig($this);
     }
     return $this;
 }