Skip to content

Commit 41cadcd

Browse files
Daniel S. Reichenbachstof
authored andcommitted
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.
1 parent 0bc55e0 commit 41cadcd

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)