Returns the table registry key used to create this table instance or sets one.

@deprecated 3.4.0 Use setRegistryAlias()/getRegistryAlias() instead.
@param string|null $registryAlias the key used to access this object
@return string
772710
public function registryAlias($registryAlias = null)
    {
        deprecationWarning(
            get_called_class() . '::registryAlias() is deprecated. ' .
            'Use setRegistryAlias()/getRegistryAlias() instead.'
        );
        if ($registryAlias !== null) {
            $this->setRegistryAlias($registryAlias);
        }

        return $this->getRegistryAlias();
    }
979247
public static function getRepositoryConfigByAlias($alias)
	{
		$config = self::_getConfig();
		$repos = self::getRepositoryConfigs();
		if (isset($repos[$alias]))
		{
			return $repos[$alias];
		}
		return null;
	}
564751
public static function select(string $tableAlias = null): Select
    {
        $select = new Select(static::getTableName(), $tableAlias);
        $select->setAdapter(static::getAdapterConnection());
        return $select;
    }
788428
public function getPrimaryKey($bAliased = false)
    {
        return $bAliased
            ? $this->getAlias() . '.' . $this->primaryKey
            : $this->primaryKey;
    }
92328
public function getAlias() {
        //Check and see if there is another relationship with the same name
        $multipleFound = false;
        foreach($this->getRelationships() as $relationship) {
            if($relationship !== $this && $relationship->getRemoteTable() == $this->getRemoteTable()) {
                $multipleFound = true;
            }
        }
        $returnVar = '';
        if($multipleFound) {
            if($this->isPlural()) {
                $name = $this->getRemoteColumn();
                //Strip out local table
                if(stripos($name, $this->getRemoteTable()) === 0) {
                    $name = substr($name, strlen($this->getRemoteTable()));
                }
                //Strip out remote table name, with id
                if(stripos(substr($name, strlen($this->getLocalTable() . 'Id') * -1), $this->getLocalTable() . 'Id') === 0) {
                    $name = substr($name, 0, strlen($this->getLocalTable() . 'Id') * -1);
                }
            } else {
                $name = $this->getLocalColumn();
                //Strip out local table
                if(stripos($name, $this->getLocalTable()) === 0) {
                    $name = substr($name, strlen($this->getLocalTable()));
                }
                //Strip out remote table name, with id
                if(stripos(substr($name, strlen($this->getRemoteTable() . 'Id') * -1), $this->getRemoteTable() . 'Id') === 0) {
                    $name = substr($name, 0, strlen($this->getRemoteTable() . 'Id') * -1);
                }
            }
            $returnVar .= $name;
        }
        $returnVar .= $this->getRemoteShortModel();
        if($this->isPlural()) {
            $pluralHelper = new PluralHelper();
            $returnVar = $pluralHelper->pluralize($returnVar);
        }
        return ucfirst($returnVar);
    }
645688
public function getTableByAlias($alias)
    {
        return $this->hasTableAlias($alias) ? $this->getExpression($this->getHash($alias)) : null;
    }
404231
public function getTableAlias($table_name = null)
    {
        if (!$table_name) {
            $table_name = $this->getTableName();
        }
        $bits = explode("_", $table_name);
        $alias = '';
        foreach ($bits as $bit) {
            $alias .= strtolower(substr($bit, 0, 1));
        }
        return $alias;
    }
883048
private function getAllUrlAliasesQuery(): string
    {
        $existingAliasesQueryBuilder = $this->connection->createQueryBuilder();
        $innerQueryBuilder = $this->connection->createQueryBuilder();

        return $existingAliasesQueryBuilder
            ->select('tmp.id')
            ->from(
                // nest subquery to avoid same-table update error
                '(' . $innerQueryBuilder->select('id')->from($this->table)->getSQL() . ')',
                'tmp'
            )
            ->getSQL();
    }
199358
public function getFromRegistry($controllerString)
    {
        if (!is_string($controllerString)) {
            return null;
        }

        foreach ($this->registry as $viewBuilder) {
            if ($viewBuilder->matches($controllerString)) {
                return $viewBuilder;
            }
        }

        return null;
    }
1113449
public function getPrimary(string $prefix, string $table): ?string
    {
        $name = $prefix . $table;
        if (array_key_exists($name, $this->primaryKeys)) {
            return $this->primaryKeys[$name];
        }

        if (!$this->hasTable($name)) {
            throw new DriverException(
                "Unable to fetch table primary key, no such table '{$name}' exists"
            );
        }

        $this->primaryKeys[$name] = $this->getSchema($table, $prefix)->getPrimaryKeys();
        if (count($this->primaryKeys[$name]) === 1) {
            //We do support only single primary key
            $this->primaryKeys[$name] = $this->primaryKeys[$name][0];
        } else {
            $this->primaryKeys[$name] = null;
        }

        return $this->primaryKeys[$name];
    }
679959
protected function occurrence(ReturnFile\Registry $registry)
    {
        $occurrence = parent::occurrence($registry);

        $errors = array_intersect_key(
            $this->config['error_table'],
            array_filter(str_split($registry->error_table))
        );

        return (empty($errors))
            ? $occurrence
            : implode("\n- ", array_merge([$occurrence ?? 'Erros:'], $errors));
    }
724238
protected function getAliasColumn()
    {
        $strColNameAlias = $this->get('tag_alias');
        if ($this->isTreePicker() || !$strColNameAlias) {
            $strColNameAlias = $this->getIdColumn();
        }
        return $strColNameAlias;
    }
352963
public static function registry(ObjectRegistry $registry = null)
    {
        if ($registry) {
            static::$_registry = $registry;
        }

        if (empty(static::$_registry)) {
            static::$_registry = new QueueEngineRegistry();
        }

        return static::$_registry;
    }
1203593
public function getAuthenticateData(array $registrations)
    {
        $sigs = array();
        $challenge = $this->createChallenge();
        foreach ($registrations as $reg) {
            if( !is_object( $reg ) ) {
                throw new \InvalidArgumentException('$registrations of getAuthenticateData() method only accepts array of object.');
            }
            /** @var Registration $reg */

            $sig = new SignRequest();
            $sig->appId = $this->appId;
            $sig->keyHandle = $reg->keyHandle;
            $sig->challenge = $challenge;
            $sigs[] = $sig;
        }
        return $sigs;
    }
213247
public function getTableFromAlias(string $alias) : \Dms\Core\Persistence\Db\Schema\Table
    {
        if ($this->alias === $alias) {
            return $this->table;
        }

        foreach ($this->joins as $join) {
            if ($join->getAlias() === $alias) {
                return $join->getTable();
            }
        }

        throw InvalidArgumentException::format(
            'Invalid alias supplied to %s: expecting one of (%s), \'%s\' given',
            __METHOD__, Debug::formatValues($this->getAliases()), $alias
        );
    }
174337
public static function getClassMetadataFromJoinAlias(string $alias, QueryBuilder $queryBuilder, ManagerRegistry $managerRegistry): ClassMetadata
    {
        @trigger_error(sprintf('The use of "%s::getClassMetadataFromJoinAlias()" is deprecated since 2.4 and will be removed in 3.0. Use "%s::getEntityClassByAlias()" instead.', __CLASS__, QueryBuilderHelper::class), E_USER_DEPRECATED);

        $entityClass = QueryBuilderHelper::getEntityClassByAlias($alias, $queryBuilder, $managerRegistry);

        return $managerRegistry
            ->getManagerForClass($entityClass)
            ->getClassMetadata($entityClass);
    }
6724
public function generateSelectClause($tableAliases = array())
    {
        $sql = "";

        foreach ($this->columnOwnerMap as $columnName => $dqlAlias) {
            $tableAlias = isset($tableAliases[$dqlAlias])
                ? $tableAliases[$dqlAlias] : $dqlAlias;

            if ($sql) {
                $sql .= ", ";
            }

            $sql .= $tableAlias . ".";

            if (isset($this->fieldMappings[$columnName])) {
                $class = $this->em->getClassMetadata($this->declaringClasses[$columnName]);
                $sql  .= $class->fieldMappings[$this->fieldMappings[$columnName]]['columnName'];
            } else if (isset($this->metaMappings[$columnName])) {
                $sql .= $this->metaMappings[$columnName];
            } else if (isset($this->discriminatorColumn[$columnName])) {
                $sql .= $this->discriminatorColumn[$columnName];
            }

            $sql .= " AS " . $columnName;
        }

        return $sql;
    }