public function initializeDefaultAliases()
    {
        foreach ($this->defaultAliases as $def => $entityClass) {
            $table = $this->namingStrategy->classToTableName($entityClass);
            $this->defaultAliases[$table] = $entityClass;
        }

        foreach ($this->aliases as $prefixed) {
            $entity = isset($this->defaultAliases[$prefixed]) ? $this->defaultAliases[$prefixed] : null;
            if ($entity !== null) {
                $this->setDefaultAlias($prefixed, $entity);
            }
        }
    }
public function initializeDefaultAliases()
    {
        foreach ($this->defaultAliases as $def => $entityClass) {
            $table = $this->namingStrategy->classToTableName($entityClass);
            $this->defaultAliases[$table] = $entityClass;
        }

        foreach ($this->aliases as $prefixed) {
            $entity = isset($this->defaultAliases[$prefixed]) ? $this->defaultAliases[$prefixed] : null;
            if ($entity !== null) {
                $this->setDefaultAlias($prefixed, $entity);
            }
        }
    }
public function initializeDefaultAliases ( ) { foreach ( $ this -> defaultAliases as $ def => $ entityClass ) { $ table = $ this -> namingStrategy -> classToTableName ( $ entityClass ) ; $ this -> defaultAliases [ $ table ] = $ entityClass ; } foreach ( $ this -> aliases as $ prefixed ) { $ entity = isset ( $ this -> defaultAliases [ $ prefixed ] ) ? $ this -> defaultAliases [ $ prefixed ] : null ; if ( $ entity !== null ) { $ this -> setDefaultAlias ( $ prefixed , $ entity ) ; } } }
This seeds the defaultAliases array with the correctly prefixed mappings.
This seeds the defaultAliases array with the correctly prefixed mappings .