#6325 adding IDE hints, type hints, replacing double quotes with single quotes
This commit is contained in:
parent
633a442046
commit
b21cb3e2a0
@ -19,6 +19,8 @@
|
||||
|
||||
namespace Doctrine\ORM\Query;
|
||||
|
||||
use Doctrine\ORM\Query\AST\PathExpression;
|
||||
|
||||
/**
|
||||
* Description of QueryException.
|
||||
*
|
||||
@ -204,15 +206,15 @@ class QueryException extends \Doctrine\ORM\ORMException
|
||||
}
|
||||
|
||||
/**
|
||||
* @param object $pathExpr
|
||||
* @param PathExpression $pathExpr
|
||||
*
|
||||
* @return QueryException
|
||||
*/
|
||||
public static function associationPathInverseSideNotSupported($pathExpr)
|
||||
public static function associationPathInverseSideNotSupported(PathExpression $pathExpr)
|
||||
{
|
||||
return new self(
|
||||
"A single-valued association path expression to an inverse side is not supported in DQL queries. " .
|
||||
"Instead of '" . $pathExpr->identificationVariable . "." . $pathExpr->field . "' use an explicit join."
|
||||
'A single-valued association path expression to an inverse side is not supported in DQL queries. ' .
|
||||
'Instead of "' . $pathExpr->identificationVariable . '.' . $pathExpr->field . '" use an explicit join.'
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -644,6 +644,7 @@ class SqlWalker implements TreeWalker
|
||||
{
|
||||
$sql = '';
|
||||
|
||||
/* @var $pathExpr Query\AST\PathExpression */
|
||||
switch ($pathExpr->type) {
|
||||
case AST\PathExpression::TYPE_STATE_FIELD:
|
||||
$fieldName = $pathExpr->field;
|
||||
|
Loading…
x
Reference in New Issue
Block a user