public function getRepositories(array $entityNames)
    {
        $repositoryCollection = new EntityRepositoryCollection($this);
        foreach ($entityNames as $entityName) {
            $repositoryCollection->addRepository($this->getRepository($entityName));
        }
        return $repositoryCollection;
    }
public function getRepositories(array $entityNames)
    {
        $repositoryCollection = new EntityRepositoryCollection($this);
        foreach ($entityNames as $entityName) {
            $repositoryCollection->addRepository($this->getRepository($entityName));
        }
        return $repositoryCollection;
    }
public function getRepositories ( array $ entityNames ) { $ repositoryCollection = new EntityRepositoryCollection ( $ this ) ; foreach ( $ entityNames as $ entityName ) { $ repositoryCollection -> addRepository ( $ this -> getRepository ( $ entityName ) ) ; } return $ repositoryCollection ; }
Gets a collection of entity repositories.

@param array $entityNames The names of the entities.
@return EntityRepositoryCollection The repository class.
Gets a collection of entity repositories .