Skip to content

Commit c1cfdf9

Browse files
committed
minor #1920 Fixed semantical error in invitation example (danielsreichenbach)
This PR was submitted for the master branch but it was merged into the 1.3.x branch instead (closes #1920). Discussion ---------- Fixed semantical error in invitation example This fixes the DQL used to look up invitation codes. Without using the table prefix, Doctrine will throw a semantical error. Commits ------- 41cadcd Fixed semantical error in invitation example
2 parents 0bc55e0 + 41cadcd commit c1cfdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/doc/adding_invitation_registration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Create the custom data transformer::
214214
$dql = <<<DQL
215215
SELECT i
216216
FROM AppBundle:Invitation i
217-
WHERE code = :code
217+
WHERE i.code = :code
218218
AND NOT EXISTS(SELECT 1 FROM AppBundle:User u WHERE u.invitation = i)
219219
DQL;
220220

0 commit comments

Comments
 (0)