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->aRigs) {
         $this->aRigs->removeRigAttributeValues($this);
     }
     if (null !== $this->aRigAttributes) {
         $this->aRigAttributes->removeRigAttributeValues($this);
     }
     $this->id = null;
     $this->rig_id = null;
     $this->rig_attribute_id = null;
     $this->value = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Exemplo n.º 2
0
 /**
  * Filter the query by a related \Rigs object
  *
  * @param \Rigs|ObjectCollection $rigs 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 ChildRigAttributeValuesQuery The current query, for fluid interface
  */
 public function filterByRigs($rigs, $comparison = null)
 {
     if ($rigs instanceof \Rigs) {
         return $this->addUsingAlias(RigAttributeValuesTableMap::COL_RIG_ID, $rigs->getId(), $comparison);
     } elseif ($rigs instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(RigAttributeValuesTableMap::COL_RIG_ID, $rigs->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByRigs() only accepts arguments of type \\Rigs or Collection');
     }
 }
Exemplo n.º 3
0
 /**
  * @param ChildRigs $rigs The ChildRigs object to add.
  */
 protected function doAddRigs(ChildRigs $rigs)
 {
     $this->collRigss[] = $rigs;
     $rigs->setUser($this);
 }
Exemplo n.º 4
0
 /**
  * Filter the query by a related \Rigs object
  *
  * @param \Rigs|ObjectCollection $rigs the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByRigs($rigs, $comparison = null)
 {
     if ($rigs instanceof \Rigs) {
         return $this->addUsingAlias(UserTableMap::COL_ID, $rigs->getUserId(), $comparison);
     } elseif ($rigs instanceof ObjectCollection) {
         return $this->useRigsQuery()->filterByPrimaryKeys($rigs->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByRigs() only accepts arguments of type \\Rigs 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->aGames) {
         $this->aGames->removeRatingHeaders($this);
     }
     if (null !== $this->aUser) {
         $this->aUser->removeRatingHeaders($this);
     }
     if (null !== $this->aRigs) {
         $this->aRigs->removeRatingHeaders($this);
     }
     if (null !== $this->aPlatforms) {
         $this->aPlatforms->removeRatingHeaders($this);
     }
     $this->id = null;
     $this->game_id = null;
     $this->user_id = null;
     $this->game_platform_id = null;
     $this->rig_id = null;
     $this->created = null;
     $this->updated = null;
     $this->upvotes = null;
     $this->downvotes = null;
     $this->comments = null;
     $this->score = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Exemplo n.º 6
0
 /**
  * Exclude object from result
  *
  * @param   ChildRigs $rigs Object to remove from the list of results
  *
  * @return $this|ChildRigsQuery The current query, for fluid interface
  */
 public function prune($rigs = null)
 {
     if ($rigs) {
         $this->addUsingAlias(RigsTableMap::COL_ID, $rigs->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }