public function initializeShortAliases()
    {
        foreach ($this->schemaManager->getSchemaTables() as $table) {
            if ($tableName = $table->getName()) {
                $mainAlias = $this->getContentTypeFromAlias($table->getOption('alias'));
                $this->aliases[$mainAlias] = $tableName;
                $slugAlias = $this->normalizeClassName($this->getContentTypeFromAlias($table->getOption('alias'), true));
                $singularAlias = $this->normalizeClassName($this->getContentTypeFromAlias($table->getOption('alias'), 'singular'));

                if ($mainAlias !== $slugAlias) {
                    $this->aliases[$slugAlias] = $tableName;
                }
                if ($mainAlias !== $singularAlias) {
                    $this->aliases[$singularAlias] = $tableName;
                }
            }
        }
    }
public function initializeShortAliases()
    {
        foreach ($this->schemaManager->getSchemaTables() as $table) {
            if ($tableName = $table->getName()) {
                $mainAlias = $this->getContentTypeFromAlias($table->getOption('alias'));
                $this->aliases[$mainAlias] = $tableName;
                $slugAlias = $this->normalizeClassName($this->getContentTypeFromAlias($table->getOption('alias'), true));
                $singularAlias = $this->normalizeClassName($this->getContentTypeFromAlias($table->getOption('alias'), 'singular'));

                if ($mainAlias !== $slugAlias) {
                    $this->aliases[$slugAlias] = $tableName;
                }
                if ($mainAlias !== $singularAlias) {
                    $this->aliases[$singularAlias] = $tableName;
                }
            }
        }
    }
public function initializeShortAliases ( ) { foreach ( $ this -> schemaManager -> getSchemaTables ( ) as $ table ) { if ( $ tableName = $ table -> getName ( ) ) { $ mainAlias = $ this -> getContentTypeFromAlias ( $ table -> getOption ( 'alias' ) ) ; $ this -> aliases [ $ mainAlias ] = $ tableName ; $ slugAlias = $ this -> normalizeClassName ( $ this -> getContentTypeFromAlias ( $ table -> getOption ( 'alias' ) , true ) ) ; $ singularAlias = $ this -> normalizeClassName ( $ this -> getContentTypeFromAlias ( $ table -> getOption ( 'alias' ) , 'singular' ) ) ; if ( $ mainAlias !== $ slugAlias ) { $ this -> aliases [ $ slugAlias ] = $ tableName ; } if ( $ mainAlias !== $ singularAlias ) { $ this -> aliases [ $ singularAlias ] = $ tableName ; } } } }
Setup some short aliases so non prefixed keys can be used to get metadata.
Setup some short aliases so non prefixed keys can be used to get metadata .