Exemple #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->aConfig) {
         $this->aConfig->removeConfigI18n($this);
     }
     $this->config_id = null;
     $this->locale = null;
     $this->config_name = null;
     $this->config_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\Config object
  *
  * @param \App\Propel\Config|ObjectCollection $config 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 ChildConfigI18nQuery The current query, for fluid interface
  */
 public function filterByConfig($config, $comparison = null)
 {
     if ($config instanceof \App\Propel\Config) {
         return $this->addUsingAlias(ConfigI18nTableMap::COL_CONFIG_ID, $config->getConfigId(), $comparison);
     } elseif ($config instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ConfigI18nTableMap::COL_CONFIG_ID, $config->toKeyValue('PrimaryKey', 'ConfigId'), $comparison);
     } else {
         throw new PropelException('filterByConfig() only accepts arguments of type \\App\\Propel\\Config or Collection');
     }
 }
 /**
  * Filter the query by a related \App\Propel\Config object
  *
  * @param \App\Propel\Config|ObjectCollection $config the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildConfigCategoryQuery The current query, for fluid interface
  */
 public function filterByConfig($config, $comparison = null)
 {
     if ($config instanceof \App\Propel\Config) {
         return $this->addUsingAlias(ConfigCategoryTableMap::COL_CONFIG_CATEGORY_ID, $config->getConfigCategoryId(), $comparison);
     } elseif ($config instanceof ObjectCollection) {
         return $this->useConfigQuery()->filterByPrimaryKeys($config->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByConfig() only accepts arguments of type \\App\\Propel\\Config or Collection');
     }
 }
Exemple #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->aConfig) {
         $this->aConfig->removeConfigVersion($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);
 }
Exemple #5
0
 /**
  * @param ChildConfig $config The ChildConfig object to add.
  */
 protected function doAddConfig(ChildConfig $config)
 {
     $this->collConfigs[] = $config;
     $config->setConfigCategory($this);
 }
Exemple #6
0
 /**
  * Exclude object from result
  *
  * @param   ChildConfig $config Object to remove from the list of results
  *
  * @return $this|ChildConfigQuery The current query, for fluid interface
  */
 public function prune($config = null)
 {
     if ($config) {
         $this->addUsingAlias(ConfigTableMap::COL_CONFIG_ID, $config->getConfigId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }