/** * 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->aConfigCategory) { $this->aConfigCategory->removeConfigCategoryI18n($this); } $this->config_category_id = null; $this->locale = null; $this->config_category_name = null; $this->config_category_description = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->applyDefaultValues(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \App\Propel\ConfigCategory object * * @param \App\Propel\ConfigCategory|ObjectCollection $configCategory 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 ChildConfigCategoryI18nQuery The current query, for fluid interface */ public function filterByConfigCategory($configCategory, $comparison = null) { if ($configCategory instanceof \App\Propel\ConfigCategory) { return $this->addUsingAlias(ConfigCategoryI18nTableMap::COL_CONFIG_CATEGORY_ID, $configCategory->getConfigCategoryId(), $comparison); } elseif ($configCategory instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ConfigCategoryI18nTableMap::COL_CONFIG_CATEGORY_ID, $configCategory->toKeyValue('PrimaryKey', 'ConfigCategoryId'), $comparison); } else { throw new PropelException('filterByConfigCategory() only accepts arguments of type \\App\\Propel\\ConfigCategory or Collection'); } }
/** * Exclude object from result * * @param ChildConfigCategory $configCategory Object to remove from the list of results * * @return $this|ChildConfigCategoryQuery The current query, for fluid interface */ public function prune($configCategory = null) { if ($configCategory) { $this->addUsingAlias(ConfigCategoryTableMap::COL_CONFIG_CATEGORY_ID, $configCategory->getConfigCategoryId(), 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->aConfigCategory) { $this->aConfigCategory->removeConfig($this); } $this->config_id = null; $this->config_category_id = null; $this->config_key = null; $this->config_value = null; $this->config_format = null; $this->version = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->applyDefaultValues(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }