Action/BuildAction.php
protected function prepareTableRegistry(DOMElement $table, $bundle)
    {
        if (($tableName = $table->getAttribute('name')) !== '') {
            $tmpTableClass = null;
            if (!empty($tableClass = $table->getAttribute('tableClass'))) {
                $tmpTableClass = "'" . $tableClass . "'";
            }

            $tmpEntityClass = null;
            if (!empty($entityClass = $table->getAttribute('entityClass'))) {
                $tmpEntityClass = "'" . $entityClass . "'";
            }

            $tmpAlias = null;
            if (!empty($alias = $table->getAttribute('alias'))) {
                $tmpAlias = "'" . $alias . "'";
            }

            $code = <<<PHP
Cake\ORM\TableRegistry::config(
    '$bundle.$alias',
    [
        'table' => '$tableName',
        'alias' => $tmpAlias,
        'className' => $tmpTableClass,
        'entityClass' => $tmpEntityClass,
    ]
);
PHP;

            $this->tablesModel[$bundle][] = [
                'tableClass' => $tableClass,
                'entityClass' => $entityClass,
                'alias' => $alias
            ];
            $this->tableRegistryCode[$bundle][] = $code;
        }
    }
protected function prepareTableRegistry(DOMElement $table, $bundle)
    {
        if (($tableName = $table->getAttribute('name')) !== '') {
            $tmpTableClass = null;
            if (!empty($tableClass = $table->getAttribute('tableClass'))) {
                $tmpTableClass = "'" . $tableClass . "'";
            }

            $tmpEntityClass = null;
            if (!empty($entityClass = $table->getAttribute('entityClass'))) {
                $tmpEntityClass = "'" . $entityClass . "'";
            }

            $tmpAlias = null;
            if (!empty($alias = $table->getAttribute('alias'))) {
                $tmpAlias = "'" . $alias . "'";
            }

            $code = <<<PHP
Cake\ORM\TableRegistry::config(
    '$bundle.$alias',
    [
        'table' => '$tableName',
        'alias' => $tmpAlias,
        'className' => $tmpTableClass,
        'entityClass' => $tmpEntityClass,
    ]
);
PHP;

            $this->tablesModel[$bundle][] = [
                'tableClass' => $tableClass,
                'entityClass' => $entityClass,
                'alias' => $alias
            ];
            $this->tableRegistryCode[$bundle][] = $code;
        }
    }
protected function prepareTableRegistry ( DOMElement $ table , $ bundle ) { if ( ( $ tableName = $ table -> getAttribute ( 'name' ) ) !== '' ) { $ tmpTableClass = null ; if ( ! empty ( $ tableClass = $ table -> getAttribute ( 'tableClass' ) ) ) { $ tmpTableClass = "'" . $ tableClass . "'" ; } $ tmpEntityClass = null ; if ( ! empty ( $ entityClass = $ table -> getAttribute ( 'entityClass' ) ) ) { $ tmpEntityClass = "'" . $ entityClass . "'" ; } $ tmpAlias = null ; if ( ! empty ( $ alias = $ table -> getAttribute ( 'alias' ) ) ) { $ tmpAlias = "'" . $ alias . "'" ; } $ code =  <<<PHP
Cake\ORM\TableRegistry::config(
    '$bundle.$alias',
    [
        'table' => '$tableName',
        'alias' => $tmpAlias,
        'className' => $tmpTableClass,
        'entityClass' => $tmpEntityClass,
    ]
);
PHP ; $ this -> tablesModel [ $ bundle ] [ ] = [ 'tableClass' => $ tableClass , 'entityClass' => $ entityClass , 'alias' => $ alias ] ; $ this -> tableRegistryCode [ $ bundle ] [ ] = $ code ; } }
Prepare table registry

@param DOMElement $table
@param string     $bundle Bundle name
Prepare table registry