Skip to content

Commit

Permalink
tip for mapping definition
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SrgSteak committed Feb 18, 2015
1 parent e5dbd49 commit 4422c10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cookbook/security/entity_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,11 @@ The code below shows the implementation of the
}
}

.. tip::

Don't forget to
:ref: `add the repository class to the mapping definition of your entity <book-doctrine-custom-repository-classes>`.

To finish the implementation, the configuration of the security layer must be
changed to tell Symfony to use the new custom entity provider instead of the
generic Doctrine entity provider. It's trivial to achieve by removing the
Expand Down

0 comments on commit 4422c10

Please sign in to comment.