Skip to content

Commit

Permalink
Merge branch '2.4' of github.com:sulu/sulu-docs into 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed May 2, 2024
2 parents 0c48749 + 178a90c commit 664e96d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cookbook/extend-entities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 664e96d

Please sign in to comment.