diff --git a/cookbook/security/entity_provider.rst b/cookbook/security/entity_provider.rst index 98df1da6a69..125f8d6a184 100644 --- a/cookbook/security/entity_provider.rst +++ b/cookbook/security/entity_provider.rst @@ -583,6 +583,11 @@ The code below shows the implementation of the } } +.. tip:: + + Don't forget to add the repository class to the + :ref: `mapping definition of your entity `. + 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