1
0
mirror of synced 2025-03-06 12:56:10 +03:00

#6325 adding IDE hints, type hints, replacing double quotes with single quotes

This commit is contained in:
Marco Pivetta 2017-06-21 08:16:24 +02:00
parent 633a442046
commit b21cb3e2a0
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629
2 changed files with 7 additions and 4 deletions

View File

@ -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.'
);
}

View File

@ -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;