/**
  * Sets the properties of the current object to the value they had at a specific version
  *
  * @param ChildMenuI18nVersion $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 ChildMenuI18n The current object (for fluent API support)
  */
 public function populateFromVersion($version, $con = null, &$loadedObjects = array())
 {
     $loadedObjects['ChildMenuI18n'][$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;
 }
 /**
  * Exclude object from result
  *
  * @param   ChildMenuI18nVersion $menuI18nVersion Object to remove from the list of results
  *
  * @return ChildMenuI18nVersionQuery The current query, for fluid interface
  */
 public function prune($menuI18nVersion = null)
 {
     if ($menuI18nVersion) {
         $this->addCond('pruneCond0', $this->getAliasedColName(MenuI18nVersionTableMap::ID), $menuI18nVersion->getId(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(MenuI18nVersionTableMap::VERSION), $menuI18nVersion->getVersion(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
     }
     return $this;
 }
 /**
  * Adds an object to the instance pool.
  *
  * Propel keeps cached copies of objects in an instance pool when they are retrieved
  * from the database. In some cases you may need to explicitly add objects
  * to the cache in order to ensure that the same objects are always returned by find*()
  * and findPk*() calls.
  *
  * @param \Menu\Model\MenuI18nVersion $obj A \Menu\Model\MenuI18nVersion object.
  * @param string $key             (optional) key to use for instance map (for performance boost if key was already calculated externally).
  */
 public static function addInstanceToPool($obj, $key = null)
 {
     if (Propel::isInstancePoolingEnabled()) {
         if (null === $key) {
             $key = serialize(array((string) $obj->getId(), (string) $obj->getVersion()));
         }
         // if key === null
         self::$instances[$key] = $obj;
     }
 }