Ejemplo n.º 1
0
 /**
  * Exclude object from result
  *
  * @param   ChildCategoryOption $categoryOption Object to remove from the list of results
  *
  * @return $this|ChildCategoryOptionQuery The current query, for fluid interface
  */
 public function prune($categoryOption = null)
 {
     if ($categoryOption) {
         $this->addUsingAlias(CategoryOptionTableMap::COL_ID, $categoryOption->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * @param ChildCategoryOption $categoryOption The ChildCategoryOption object to add.
  */
 protected function doAddCategoryOption(ChildCategoryOption $categoryOption)
 {
     $this->collCategoryOptions[] = $categoryOption;
     $categoryOption->setCategory($this);
 }
Ejemplo n.º 3
0
 /**
  * Filter the query by a related \CategoryOption object
  *
  * @param \CategoryOption|ObjectCollection $categoryOption 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 ChildRatingValueQuery The current query, for fluid interface
  */
 public function filterByCategoryOption($categoryOption, $comparison = null)
 {
     if ($categoryOption instanceof \CategoryOption) {
         return $this->addUsingAlias(RatingValueTableMap::COL_CATEGORY_OPTION_ID, $categoryOption->getId(), $comparison);
     } elseif ($categoryOption instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(RatingValueTableMap::COL_CATEGORY_OPTION_ID, $categoryOption->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByCategoryOption() only accepts arguments of type \\CategoryOption or Collection');
     }
 }
Ejemplo n.º 4
0
 /**
  * Filter the query by a related \CategoryOption object
  *
  * @param \CategoryOption|ObjectCollection $categoryOption the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildCategoryQuery The current query, for fluid interface
  */
 public function filterByCategoryOption($categoryOption, $comparison = null)
 {
     if ($categoryOption instanceof \CategoryOption) {
         return $this->addUsingAlias(CategoryTableMap::COL_ID, $categoryOption->getCategoryId(), $comparison);
     } elseif ($categoryOption instanceof ObjectCollection) {
         return $this->useCategoryOptionQuery()->filterByPrimaryKeys($categoryOption->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByCategoryOption() only accepts arguments of type \\CategoryOption or Collection');
     }
 }
Ejemplo n.º 5
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aCategoryOption) {
         $this->aCategoryOption->removeRatingValue($this);
     }
     if (null !== $this->aRatingHeader) {
         $this->aRatingHeader->removeRatingValue($this);
     }
     $this->rating_header_id = null;
     $this->category_option_id = null;
     $this->original_value = null;
     $this->do_not_score = null;
     $this->comments = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Ejemplo n.º 6
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aCategory) {
         $this->aCategory->removeCategoryOption($this);
     }
     if (null !== $this->aCategoryOptionRelatedByParentId) {
         $this->aCategoryOptionRelatedByParentId->removeCategoryOptionRelatedById($this);
     }
     $this->id = null;
     $this->category_id = null;
     $this->description = null;
     $this->comment = null;
     $this->mod_comment = null;
     $this->value = null;
     $this->sequence = null;
     $this->parent_id = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }