Doctrine\ODM\OrientDB\Mapper\ClusterMap::generateMap PHP Метод

generateMap() публичный Метод

Creates the mapping of classes to clusters, it is public so it can be called forcibly which will be handy if it's done in some cache-warmup task.
public generateMap ( )
    public function generateMap()
    {
        $map = array();
        $database = $this->binding->getDatabase()->getData();
        foreach ($database->classes as $class) {
            $map[$class->name] = $class->clusters;
        }
        $this->map = $map;
        $this->cache->save($this->getCacheKey(), $map);
    }