Commit 8cf827d2 authored by jarekj's avatar jarekj Committed by Steve Müller

Update QueryException.php

parent 77ea400d
......@@ -38,4 +38,17 @@ class QueryException extends DBALException
"any FROM or JOIN clause table. The currently registered " .
"aliases are: " . implode(", ", $registeredAliases) . ".");
}
/**
* @param string $alias
* @param array $registeredAliases
*
* @return \Doctrine\DBAL\Query\QueryException
*/
static public function notUniqueAlias($alias, $registeredAliases)
{
return new self("The given alias '" . $alias . "' is not unique " .
"in FROM and JOIN clause table. The currently registered " .
"aliases are: " . implode(", ", $registeredAliases) . ".");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment