/** * 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\File object * * @param \App\Propel\File|ObjectCollection $file 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 ChildResourceFileQuery The current query, for fluid interface */ public function filterByFile($file, $comparison = null) { if ($file instanceof \App\Propel\File) { return $this->addUsingAlias(ResourceFileTableMap::COL_FILE_ID, $file->getFileId(), $comparison); } elseif ($file instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ResourceFileTableMap::COL_FILE_ID, $file->toKeyValue('PrimaryKey', 'FileId'), $comparison); } else { throw new PropelException('filterByFile() only accepts arguments of type \\App\\Propel\\File 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->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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * Filter the query by a related \App\Propel\File object * * @param \App\Propel\File|ObjectCollection $file the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildFileTypeQuery The current query, for fluid interface */ public function filterByFile($file, $comparison = null) { if ($file instanceof \App\Propel\File) { return $this->addUsingAlias(FileTypeTableMap::COL_FILE_TYPE_ID, $file->getFileTypeId(), $comparison); } elseif ($file instanceof ObjectCollection) { return $this->useFileQuery()->filterByPrimaryKeys($file->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByFile() only accepts arguments of type \\App\\Propel\\File 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->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); }
/** * Exclude object from result * * @param ChildFile $file Object to remove from the list of results * * @return $this|ChildFileQuery The current query, for fluid interface */ public function prune($file = null) { if ($file) { $this->addUsingAlias(FileTableMap::COL_FILE_ID, $file->getFileId(), Criteria::NOT_EQUAL); } return $this; }
/** * 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); }
/** * @param ChildFile $file The ChildFile object to add. */ protected function doAddFile(ChildFile $file) { $this->collFiles[] = $file; $file->setFileType($this); }