lib/Yucca/Model/ModelAbstract.php
protected function hydrate($propertyName)
    {

        if (isset($this->yuccaMappingManager) && (false === isset($this->yuccaInitialized[$propertyName])) && (false === empty($this->yuccaIdentifier))) {
            $values = $this->yuccaMappingManager->getMapper(get_class($this))->load($this->yuccaIdentifier, $propertyName, $this->yuccaShardingKey);
            foreach ($values as $property => $value) {
                if (false === isset($this->yuccaInitialized[$property])) {
                    $this->$property = $value;
                    $this->yuccaInitialized[$property] = true;
                }
            }
        }
        $this->yuccaInitialized[$propertyName] = true;

        return $this;
    }
protected function hydrate($propertyName)
    {

        if (isset($this->yuccaMappingManager) && (false === isset($this->yuccaInitialized[$propertyName])) && (false === empty($this->yuccaIdentifier))) {
            $values = $this->yuccaMappingManager->getMapper(get_class($this))->load($this->yuccaIdentifier, $propertyName, $this->yuccaShardingKey);
            foreach ($values as $property => $value) {
                if (false === isset($this->yuccaInitialized[$property])) {
                    $this->$property = $value;
                    $this->yuccaInitialized[$property] = true;
                }
            }
        }
        $this->yuccaInitialized[$propertyName] = true;

        return $this;
    }
protected function hydrate ( $ propertyName ) { if ( isset ( $ this -> yuccaMappingManager ) && ( false === isset ( $ this -> yuccaInitialized [ $ propertyName ] ) ) && ( false === empty ( $ this -> yuccaIdentifier ) ) ) { $ values = $ this -> yuccaMappingManager -> getMapper ( get_class ( $ this ) ) -> load ( $ this -> yuccaIdentifier , $ propertyName , $ this -> yuccaShardingKey ) ; foreach ( $ values as $ property => $ value ) { if ( false === isset ( $ this -> yuccaInitialized [ $ property ] ) ) { $ this -> $ property = $ value ; $ this -> yuccaInitialized [ $ property ] = true ; } } } $ this -> yuccaInitialized [ $ propertyName ] = true ; return $ this ; }
Hydrate this model with information coming from the mapping manager
@param $propertyName
@return ModelAbstract
Hydrate this model with information coming from the mapping manager