/** * Sets the properties of the current object to the value they had at a specific version * * @param ChildContentAreaVersion $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|ChildContentArea The current object (for fluent API support) */ public function populateFromVersion($version, $con = null, &$loadedObjects = array()) { $loadedObjects['ChildContentArea'][$version->getId()][$version->getVersion()] = $this; $this->setContent($version->getContent()); $this->setactiveVersion($version->getactiveVersion()); $this->setId($version->getId()); $this->setVersion($version->getVersion()); $this->setVersionCreatedAt($version->getVersionCreatedAt()); $this->setVersionCreatedBy($version->getVersionCreatedBy()); $this->setVersionComment($version->getVersionComment()); return $this; }