Skip to content

Commit 4422c10

Browse files
committed
tip for mapping definition
If you follow the link from the security documentation (http://symfony.com/doc/current/book/security.html#loading-users-from-the-database), it's easy to miss the necessary mapping definition for the repository.
1 parent e5dbd49 commit 4422c10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: cookbook/security/entity_provider.rst

+5
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,11 @@ The code below shows the implementation of the
583583
}
584584
}
585585

586+
.. tip::
587+
588+
Don't forget to
589+
:ref: `add the repository class to the mapping definition of your entity <book-doctrine-custom-repository-classes>`.
590+
586591
To finish the implementation, the configuration of the security layer must be
587592
changed to tell Symfony to use the new custom entity provider instead of the
588593
generic Doctrine entity provider. It's trivial to achieve by removing the

0 commit comments

Comments
 (0)