public function populate($entityName)
    {
        if (!class_exists($entityName)) {
            throw new \RuntimeException(sprintf('Entity %s does not exists.', $entityName));
        }

        $feed = $this->get();

        return $this->hydrator->hydrate($feed, $entityName);
    }
public function populate($entityName)
    {
        if (!class_exists($entityName)) {
            throw new \RuntimeException(sprintf('Entity %s does not exists.', $entityName));
        }

        $feed = $this->get();

        return $this->hydrator->hydrate($feed, $entityName);
    }
public function populate ( $ entityName ) { if ( ! class_exists ( $ entityName ) ) { throw new \ RuntimeException ( sprintf ( 'Entity %s does not exists.' , $ entityName ) ) ; } $ feed = $ this -> get ( ) ; return $ this -> hydrator -> hydrate ( $ feed , $ entityName ) ; }
Populate entities with feed entries using hydrator.

@param string $entityName

@throws \RuntimeException if entity name does not exists

@return array
Populate entities with feed entries using hydrator .