Exemplo n.º 1
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->aRatingCategories) {
         $this->aRatingCategories->removeRatingCategoryOptions($this);
     }
     $this->id = null;
     $this->rating_category_id = null;
     $this->description = null;
     $this->value = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Exemplo n.º 2
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->aRatingCategories) {
         $this->aRatingCategories->removeUserWeights($this);
     }
     if (null !== $this->aUser) {
         $this->aUser->removeUserWeights($this);
     }
     $this->id = null;
     $this->rating_category_id = null;
     $this->user_id = null;
     $this->weight = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Exemplo n.º 3
0
 /**
  * Exclude object from result
  *
  * @param   ChildRatingCategories $ratingCategories Object to remove from the list of results
  *
  * @return $this|ChildRatingCategoriesQuery The current query, for fluid interface
  */
 public function prune($ratingCategories = null)
 {
     if ($ratingCategories) {
         $this->addUsingAlias(RatingCategoriesTableMap::COL_ID, $ratingCategories->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Exemplo n.º 4
0
 /**
  * Filter the query by a related \RatingCategories object
  *
  * @param \RatingCategories|ObjectCollection $ratingCategories 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 ChildRatingCategoryValuesQuery The current query, for fluid interface
  */
 public function filterByRatingCategories($ratingCategories, $comparison = null)
 {
     if ($ratingCategories instanceof \RatingCategories) {
         return $this->addUsingAlias(RatingCategoryValuesTableMap::COL_RATING_CATEGORY_ID, $ratingCategories->getId(), $comparison);
     } elseif ($ratingCategories instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(RatingCategoryValuesTableMap::COL_RATING_CATEGORY_ID, $ratingCategories->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByRatingCategories() only accepts arguments of type \\RatingCategories or Collection');
     }
 }
Exemplo 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->aRatingHeaders) {
         $this->aRatingHeaders->removeRatingCategoryValues($this);
     }
     if (null !== $this->aRatingCategories) {
         $this->aRatingCategories->removeRatingCategoryValues($this);
     }
     if (null !== $this->aRatingCategoryOptions) {
         $this->aRatingCategoryOptions->removeRatingCategoryValues($this);
     }
     $this->id = null;
     $this->rating_header_id = null;
     $this->rating_category_id = null;
     $this->rating_category_option_id = null;
     $this->original_value = null;
     $this->original_weighted_value = null;
     $this->comments = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }