Пример #1
0
 /**
  * Sets the properties of the current object to the value they had at a specific version
  *
  * @param ChildMessageVersion $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 ChildMessage The current object (for fluent API support)
  */
 public function populateFromVersion($version, $con = null, &$loadedObjects = array())
 {
     $loadedObjects['ChildMessage'][$version->getId()][$version->getVersion()] = $this;
     $this->setId($version->getId());
     $this->setName($version->getName());
     $this->setSecured($version->getSecured());
     $this->setTextLayoutFileName($version->getTextLayoutFileName());
     $this->setTextTemplateFileName($version->getTextTemplateFileName());
     $this->setHtmlLayoutFileName($version->getHtmlLayoutFileName());
     $this->setHtmlTemplateFileName($version->getHtmlTemplateFileName());
     $this->setCreatedAt($version->getCreatedAt());
     $this->setUpdatedAt($version->getUpdatedAt());
     $this->setVersion($version->getVersion());
     $this->setVersionCreatedAt($version->getVersionCreatedAt());
     $this->setVersionCreatedBy($version->getVersionCreatedBy());
     return $this;
 }