New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the bug "Invalid PathExpression" in validation service #161

Closed
wants to merge 1 commit into
base: 1.1
from

Conversation

Projects
None yet
2 participants
@globtec

globtec commented Jun 19, 2016

[FIX] "Invalid PathExpression" in validation service

Showed when the validation service was used with Doctrine version 2.5.4.
In the expression COUNT, was used the entity alias.

Usage:

$this->validate($requrest, [
    'username' => 'unique:Model\Entity\User,username'
]);
Fix the bug "Invalid PathExpression" in validation service
Showed when the validation service was used with Doctrine version 2.5.4.
In the expression COUNT, was used the entity alias.
@patrickbrouwers

This comment has been minimized.

Show comment
Hide comment
@patrickbrouwers

patrickbrouwers Jun 20, 2016

Member

@globtect Could you fix the failing test, thanks.

Member

patrickbrouwers commented Jun 20, 2016

@globtect Could you fix the failing test, thanks.

@globtec

This comment has been minimized.

Show comment
Hide comment
@globtec

globtec Jun 20, 2016

Sorry, ignore this pull request, my problem is when I use a oneToOne relation as primary key, the following dql request fail: [Semantical Error] line 0, col 13 near 'a) FROM MyEntity': Error: Invalid PathExpression. Must be a StateFieldPathExpression

globtec commented Jun 20, 2016

Sorry, ignore this pull request, my problem is when I use a oneToOne relation as primary key, the following dql request fail: [Semantical Error] line 0, col 13 near 'a) FROM MyEntity': Error: Invalid PathExpression. Must be a StateFieldPathExpression

@globtec globtec closed this Jun 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment