final protected function fetchObjectData(Model $object, $uniqueIdentifier, $relationshipsToAutoHydrate = [])
    {
        if (!isset($this->cachedObjectData[$uniqueIdentifier])) {
            $this->cachedObjectData[$uniqueIdentifier] = $this->fetchMissingObjectData(
                $object,
                $uniqueIdentifier,
                $relationshipsToAutoHydrate
            );
        }

        return $this->cachedObjectData[$uniqueIdentifier];
    }
final protected function fetchObjectData(Model $object, $uniqueIdentifier, $relationshipsToAutoHydrate = [])
    {
        if (!isset($this->cachedObjectData[$uniqueIdentifier])) {
            $this->cachedObjectData[$uniqueIdentifier] = $this->fetchMissingObjectData(
                $object,
                $uniqueIdentifier,
                $relationshipsToAutoHydrate
            );
        }

        return $this->cachedObjectData[$uniqueIdentifier];
    }
final protected function fetchObjectData ( Model $ object , $ uniqueIdentifier , $ relationshipsToAutoHydrate = [ ] ) { if ( ! isset ( $ this -> cachedObjectData [ $ uniqueIdentifier ] ) ) { $ this -> cachedObjectData [ $ uniqueIdentifier ] = $ this -> fetchMissingObjectData ( $ object , $ uniqueIdentifier , $ relationshipsToAutoHydrate ) ; } return $ this -> cachedObjectData [ $ uniqueIdentifier ] ; }
Returns the model data for a given object.

Uses cached data if it exists and if not will request that the object is hydrated.

@see    Repository::fetchMissingObjectData()
@param  \Rhubarb\Stem\Models\Model $object
@param  $uniqueIdentifier
@param  array $relationshipsToAutoHydrate An array of relationship names which should be automatically hydrated (i.e. joined) during the hydration of this object. Not supported by all Repositories.
(i.e. joined) during the hydration of this object. Not supported by all
Repositories.
@return mixed
Returns the model data for a given object .