From 178a90c470446273e12c375ba91c3532fac4406e Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Thu, 2 May 2024 12:20:31 +0200 Subject: [PATCH] Add hint about user object cached in the sessions (#775) --- cookbook/extend-entities.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbook/extend-entities.rst b/cookbook/extend-entities.rst index bbae0c76..abf254e0 100644 --- a/cookbook/extend-entities.rst +++ b/cookbook/extend-entities.rst @@ -94,6 +94,12 @@ For the `User` entity (`se_users`): model: App\Entity\User repository: Sulu\Bundle\SecurityBundle\Entity\UserRepository +.. note:: + + Symfony keeps the user object in the session, clearing the sessions is so sometimes required + when running into ``php.CRITICAL: Uncaught Error: Failed opening required /var/project/var/cache/website/prod/doctrine/orm/Proxies/__CG__SuluBundleSecurityBundleEntityUser.php``. + If use the native session storage you can use ``(php -i && php bin/console debug:config framework session) | grep save_path`` to get the configured save paths of sessions. + For the `Role` entity (`se_roles`): .. code-block:: yaml