Exemple #1
0
 /**
  * Sets the properties of the current object to the value they had at a specific version
  *
  * @param ChildConfigVersion $version The version object to use
  * @param ConnectionInterface   $con the connection to use
  * @param array                 $loadedObjects objects that been loaded in a chain of populateFromVersion calls on referrer or fk objects.
  *
  * @return $this|ChildConfig The current object (for fluent API support)
  */
 public function populateFromVersion($version, $con = null, &$loadedObjects = array())
 {
     $loadedObjects['ChildConfig'][$version->getConfigId()][$version->getVersion()] = $this;
     $this->setConfigId($version->getConfigId());
     $this->setConfigCategoryId($version->getConfigCategoryId());
     $this->setConfigKey($version->getConfigKey());
     $this->setConfigValue($version->getConfigValue());
     $this->setConfigFormat($version->getConfigFormat());
     $this->setVersion($version->getVersion());
     return $this;
 }