예제 #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->aResource) {
         $this->aResource->removeResourceFile($this);
     }
     if (null !== $this->aFile) {
         $this->aFile->removeResourceFile($this);
     }
     $this->resource_file_id = null;
     $this->resource_id = null;
     $this->file_id = null;
     $this->resource_file_is_public = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Filter the query by a related \App\Propel\Resource object
  *
  * @param \App\Propel\Resource|ObjectCollection $resource 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 ChildSocialRecommendationQuery The current query, for fluid interface
  */
 public function filterByResource($resource, $comparison = null)
 {
     if ($resource instanceof \App\Propel\Resource) {
         return $this->addUsingAlias(SocialRecommendationTableMap::COL_SOCIAL_RECOMMENDATION_FOR, $resource->getResourceId(), $comparison);
     } elseif ($resource instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(SocialRecommendationTableMap::COL_SOCIAL_RECOMMENDATION_FOR, $resource->toKeyValue('PrimaryKey', 'ResourceId'), $comparison);
     } else {
         throw new PropelException('filterByResource() only accepts arguments of type \\App\\Propel\\Resource or Collection');
     }
 }
예제 #3
0
파일: News.php 프로젝트: mtornero/slowshop
 /**
  * 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->aResourceRelatedByResourceId) {
         $this->aResourceRelatedByResourceId->removeNewsRelatedByResourceId($this);
     }
     if (null !== $this->aFile) {
         $this->aFile->removeNews($this);
     }
     if (null !== $this->aResourceRelatedByNewsFor) {
         $this->aResourceRelatedByNewsFor->removeNewsRelatedByNewsFor($this);
     }
     $this->news_id = null;
     $this->resource_id = null;
     $this->news_headline = null;
     $this->news_opening = null;
     $this->news_body = null;
     $this->news_pic = null;
     $this->news_from = null;
     $this->news_to = null;
     $this->news_for = null;
     $this->news_weight = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #4
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->removeSocialComment($this);
     }
     if (null !== $this->aResource) {
         $this->aResource->removeSocialComment($this);
     }
     $this->social_comment_id = null;
     $this->user_id = null;
     $this->social_comment_for = null;
     $this->social_comment_body = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #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->aUserRelatedByUserId) {
         $this->aUserRelatedByUserId->removeSocialRecommendationRelatedByUserId($this);
     }
     if (null !== $this->aResource) {
         $this->aResource->removeSocialRecommendation($this);
     }
     if (null !== $this->aUserRelatedBySocialRecommendationTo) {
         $this->aUserRelatedBySocialRecommendationTo->removeSocialRecommendationRelatedBySocialRecommendationTo($this);
     }
     $this->social_recommendation_id = null;
     $this->user_id = null;
     $this->social_recommendation_for = null;
     $this->social_recommendation_to = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #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->aUser) {
         $this->aUser->removeSocialLike($this);
     }
     if (null !== $this->aResource) {
         $this->aResource->removeSocialLike($this);
     }
     $this->social_like_id = null;
     $this->user_id = null;
     $this->social_like_for = null;
     $this->social_like_direction = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #7
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->aResource) {
         $this->aResource->removePromotion($this);
     }
     if (null !== $this->aPromotionType) {
         $this->aPromotionType->removePromotion($this);
     }
     $this->promotion_id = null;
     $this->resource_id = null;
     $this->promotion_type_id = null;
     $this->promotion_value = null;
     $this->promotion_gift = null;
     $this->promotion_description = null;
     $this->promotion_starting_point = null;
     $this->promotion_starting_date = null;
     $this->promotion_ending_date = null;
     $this->promotion_is_active = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #8
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->aResource) {
         $this->aResource->removeProvider($this);
     }
     if (null !== $this->aFile) {
         $this->aFile->removeProvider($this);
     }
     $this->provider_id = null;
     $this->resource_id = null;
     $this->provider_name = null;
     $this->provider_description = null;
     $this->provider_is_own = null;
     $this->provider_is_active = null;
     $this->provider_pic = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #9
0
 /**
  * Filter the query by a related \App\Propel\Resource object
  *
  * @param \App\Propel\Resource|ObjectCollection $resource the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildResourceTypeQuery The current query, for fluid interface
  */
 public function filterByResource($resource, $comparison = null)
 {
     if ($resource instanceof \App\Propel\Resource) {
         return $this->addUsingAlias(ResourceTypeTableMap::COL_RESOURCE_TYPE_ID, $resource->getResourceTypeId(), $comparison);
     } elseif ($resource instanceof ObjectCollection) {
         return $this->useResourceQuery()->filterByPrimaryKeys($resource->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByResource() only accepts arguments of type \\App\\Propel\\Resource or Collection');
     }
 }
예제 #10
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->aResource) {
         $this->aResource->removePeriodicPlan($this);
     }
     if (null !== $this->aPeriodicType) {
         $this->aPeriodicType->removePeriodicPlan($this);
     }
     if (null !== $this->aFile) {
         $this->aFile->removePeriodicPlan($this);
     }
     $this->periodic_plan_id = null;
     $this->resource_id = null;
     $this->periodic_plan_name = null;
     $this->periodic_plan_point = null;
     $this->periodic_type_id = null;
     $this->delievery_periodic_weekday = null;
     $this->periodic_plan_pic = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #11
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->aResource) {
         $this->aResource->removeCategory($this);
     }
     if (null !== $this->aFile) {
         $this->aFile->removeCategory($this);
     }
     $this->category_id = null;
     $this->resource_id = null;
     $this->category_name = null;
     $this->category_description = null;
     $this->category_pic = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->tree_left = null;
     $this->tree_right = null;
     $this->tree_level = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #12
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->aProduct) {
         $this->aProduct->removeProductHighlighted($this);
     }
     if (null !== $this->aResource) {
         $this->aResource->removeProductHighlighted($this);
     }
     $this->product_highlighted_id = null;
     $this->product_id = null;
     $this->product_highlighted_for = null;
     $this->product_highlighted_from = null;
     $this->product_highlighted_to = null;
     $this->product_highlighted_weight = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #13
0
 /**
  * @param ChildResource $resource The ChildResource object to add.
  */
 protected function doAddResource(ChildResource $resource)
 {
     $this->collResources[] = $resource;
     $resource->setResourceType($this);
 }
예제 #14
0
 /**
  * Filter the query by a related \App\Propel\Resource object
  *
  * @param \App\Propel\Resource|ObjectCollection $resource 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 ChildProductHighlightedQuery The current query, for fluid interface
  */
 public function filterByResource($resource, $comparison = null)
 {
     if ($resource instanceof \App\Propel\Resource) {
         return $this->addUsingAlias(ProductHighlightedTableMap::COL_PRODUCT_HIGHLIGHTED_FOR, $resource->getResourceId(), $comparison);
     } elseif ($resource instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ProductHighlightedTableMap::COL_PRODUCT_HIGHLIGHTED_FOR, $resource->toKeyValue('PrimaryKey', 'ResourceId'), $comparison);
     } else {
         throw new PropelException('filterByResource() only accepts arguments of type \\App\\Propel\\Resource or Collection');
     }
 }
예제 #15
0
파일: User.php 프로젝트: mtornero/slowshop
 /**
  * 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->aFile) {
         $this->aFile->removeUser($this);
     }
     if (null !== $this->aRole) {
         $this->aRole->removeUser($this);
     }
     if (null !== $this->aResource) {
         $this->aResource->removeUser($this);
     }
     $this->user_id = null;
     $this->resource_id = null;
     $this->user_name = null;
     $this->user_surname = null;
     $this->user_login = null;
     $this->user_pass = null;
     $this->user_pass_is_temp = null;
     $this->remember_token = null;
     $this->user_email = null;
     $this->user_phone = null;
     $this->user_address = null;
     $this->role_id = null;
     $this->user_is_validated = null;
     $this->user_is_active = null;
     $this->user_pic = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #16
0
 /**
  * Exclude object from result
  *
  * @param   ChildResource $resource Object to remove from the list of results
  *
  * @return $this|ChildResourceQuery The current query, for fluid interface
  */
 public function prune($resource = null)
 {
     if ($resource) {
         $this->addUsingAlias(ResourceTableMap::COL_RESOURCE_ID, $resource->getResourceId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
예제 #17
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->removeProduct($this);
     }
     if (null !== $this->aProvider) {
         $this->aProvider->removeProduct($this);
     }
     if (null !== $this->aUnit) {
         $this->aUnit->removeProduct($this);
     }
     if (null !== $this->aFile) {
         $this->aFile->removeProduct($this);
     }
     if (null !== $this->aResource) {
         $this->aResource->removeProduct($this);
     }
     $this->product_id = null;
     $this->resource_id = null;
     $this->product_name = null;
     $this->product_description = null;
     $this->category_id = null;
     $this->provider_id = null;
     $this->unit_id = null;
     $this->product_range = null;
     $this->product_price = null;
     $this->product_is_active = null;
     $this->product_pic = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }