コード例 #1
0
 /**
  * Sets the properties of the current object to the value they had at a specific version
  *
  * @param ChildMenuItemI18nVersion $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 ChildMenuItemI18n The current object (for fluent API support)
  */
 public function populateFromVersion($version, $con = null, &$loadedObjects = array())
 {
     $loadedObjects['ChildMenuItemI18n'][$version->getId()][$version->getVersion()] = $this;
     $this->setId($version->getId());
     $this->setLocale($version->getLocale());
     $this->setTitle($version->getTitle());
     $this->setDescription($version->getDescription());
     $this->setChapo($version->getChapo());
     $this->setPostscriptum($version->getPostscriptum());
     $this->setCreatedAt($version->getCreatedAt());
     $this->setUpdatedAt($version->getUpdatedAt());
     $this->setVersion($version->getVersion());
     $this->setVersionCreatedAt($version->getVersionCreatedAt());
     $this->setVersionCreatedBy($version->getVersionCreatedBy());
     return $this;
 }