public function getEntities($repository = null)
    {
        return $repository ? $this->_entities->getRepositoryEntities($repository) : $this->_entities;
    }
public function getEntities($repository = null)
    {
        return $repository ? $this->_entities->getRepositoryEntities($repository) : $this->_entities;
    }
public function getEntities ( $ repository = null ) { return $ repository ? $ this -> _entities -> getRepositoryEntities ( $ repository ) : $ this -> _entities ; }
Return an array of entities. If the repository is set then return entities for the
repository.

@param AnDomainRepositoryAbstract $repository If the repository is set then return the entities
for the $repository

@return AnObjectQeueue
Return an array of entities . If the repository is set then return entities for the repository .