Skip to content

Commit 1c50386

Browse files
committed
minor #5011 tip for mapping definition (SrgSteak)
This PR was merged into the 2.3 branch. Discussion ---------- 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. Commits ------- 7ae3a28 improved link 38dcfc8 fixed intendation and shortened the link 4422c10 tip for mapping definition
2 parents c6db525 + 7ae3a28 commit 1c50386

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cookbook/security/entity_provider.rst

Lines changed: 5 additions & 0 deletions
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 add the repository class to the
589+
:ref: `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)