/** * 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->aUser) { $this->aUser->removeRigs($this); } $this->id = null; $this->user_id = null; $this->title = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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->aUserAttribute) { $this->aUserAttribute->removeUserAttributeValue($this); } if (null !== $this->aUser) { $this->aUser->removeUserAttributeValue($this); } $this->id = null; $this->user_attribute_id = null; $this->user_id = null; $this->value = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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); }
/** * Filter the query by a related \User object * * @param \User|ObjectCollection $user 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 ChildEventQuery The current query, for fluid interface */ public function filterByCreator($user, $comparison = null) { if ($user instanceof \User) { return $this->addUsingAlias(EventTableMap::COL_CREATOR_USER_ID, $user->getUserId(), $comparison); } elseif ($user instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(EventTableMap::COL_CREATOR_USER_ID, $user->toKeyValue('PrimaryKey', 'UserId'), $comparison); } else { throw new PropelException('filterByCreator() only accepts arguments of type \\User or Collection'); } }
/** * 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->aCategories) { $this->aCategories->removeItems($this); } if (null !== $this->aSubcategories) { $this->aSubcategories->removeItems($this); } if (null !== $this->aUser) { $this->aUser->removeItems($this); } $this->item_id = null; $this->category_id = null; $this->user_id = null; $this->item_name = null; $this->price = null; $this->description = null; $this->date_added = null; $this->date_sold = null; $this->subcategory_id = null; $this->image_url = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->applyDefaultValues(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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->removeUserReviews($this); } if (null !== $this->aPlatforms) { $this->aPlatforms->removeUserReviews($this); } if (null !== $this->aUser) { $this->aUser->removeUserReviews($this); } if (null !== $this->aRatings) { $this->aRatings->removeUserReviews($this); } $this->id = null; $this->game_id = null; $this->platform_id = null; $this->user_id = null; $this->rig_id = null; $this->rating = null; $this->review = null; $this->upvotes = null; $this->downvotes = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Exclude object from result * * @param ChildUser $user Object to remove from the list of results * * @return $this|ChildUserQuery The current query, for fluid interface */ public function prune($user = null) { if ($user) { $this->addUsingAlias(UserTableMap::COL_USER_ID, $user->getUserId(), Criteria::NOT_EQUAL); } return $this; }
/** * Validates the object and all objects related to this table. * * @see getValidationFailures() * @param object $validator A Validator class instance * @return boolean Whether all objects pass validation. */ public function validate(ValidatorInterface $validator = null) { if (null === $validator) { if (class_exists('Symfony\\Component\\Validator\\Validator\\LegacyValidator')) { $validator = new LegacyValidator(new ExecutionContextFactory(new DefaultTranslator()), new ClassMetaDataFactory(new StaticMethodLoader()), new ConstraintValidatorFactory()); } else { $validator = new Validator(new ClassMetadataFactory(new StaticMethodLoader()), new ConstraintValidatorFactory(), new DefaultTranslator()); } } $failureMap = new ConstraintViolationList(); if (!$this->alreadyInValidation) { $this->alreadyInValidation = true; $retval = null; // We call the validate method on the following object(s) if they // were passed to this object by their corresponding set // method. This object relates to these object(s) by a // foreign key reference. // If validate() method exists, the validate-behavior is configured for related object if (method_exists($this->aInterested, 'validate')) { if (!$this->aInterested->validate($validator)) { $failureMap->addAll($this->aInterested->getValidationFailures()); } } // If validate() method exists, the validate-behavior is configured for related object if (method_exists($this->aTarget_Event, 'validate')) { if (!$this->aTarget_Event->validate($validator)) { $failureMap->addAll($this->aTarget_Event->getValidationFailures()); } } $retval = $validator->validate($this); if (count($retval) > 0) { $failureMap->addAll($retval); } $this->alreadyInValidation = false; } $this->validationFailures = $failureMap; return (bool) (!(count($this->validationFailures) > 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->aUser) { $this->aUser->removeTourQuery($this); } $this->id = null; $this->place_to_go = null; $this->going_from = null; $this->going_to = null; $this->return_from = null; $this->return_to = null; $this->user_id = null; $this->created_at = null; $this->updated_at = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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->aUser) { $this->aUser->removeInformationAsked($this); } $this->id = null; $this->user_id = null; $this->question = null; $this->status = null; $this->created_at = null; $this->updated_at = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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); }
/** * 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->aUserAccessType) { $this->aUserAccessType->removeUserAccess($this); } if (null !== $this->aUser) { $this->aUser->removeUserAccess($this); } $this->id = null; $this->user_id = null; $this->ipv4_address = null; $this->user_access_type_id = null; $this->access = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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->aUser) { $this->aUser->removeContestQueue($this); } $this->id = null; $this->user_id = null; $this->game_id = null; $this->platform_id = null; $this->message = null; $this->assigned_user_id = null; $this->resolved = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }