. */ namespace Doctrine\DBAL\Query; use Doctrine\DBAL\DBALException; /** * Driver interface. * Interface that all DBAL drivers must implement. * * @since 2.1.4 */ class QueryException extends DBALException { static public function unknownFromAlias($alias, $registeredAliases) { return new self("The given alias '" . $alias . "' is not part of " . "any FROM clause table. The currently registered FROM-clause " . "aliases are: " . implode(", ", $registeredAliases) . ". Join clauses " . "are bound to from clauses to provide support for mixing of multiple " . "from and join clauses."); } }