-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Description
Symfony version(s) affected
7.4.0-rc1
Description
Hey, it's a bit complicated issue, but i'll try to simpify as much as i can.
So, I tried the new 7.4beta version and my project worked in it but after upgrading to 7.4rc1 it breaks.
I have 2 different entities for authentication. 1 for the public portal (customer) and 1 for the backend (administrator)
When I try to load the backend (/admin) I got an exception with
Neither the property "monogram" nor one of the methods "monogram()", "getmonogram()"/"ismonogram()"/"hasmonogram()" or "__call()" exist and have public access in class "App\Entity\Administrator" in portal/layout.html.twig at line 17.
looks like it's trying to warm up template cache and uses the wrong usertype(?) getMonogram() function only exists in the Customer entity, and the /portal template is only used by customers. So it shouldn't have to matter when I load /admin
It was working fine on beta2 so the change have to be between the last 2 release.
How to reproduce
- have 2 different user entities with 2 different template
- try to load 1 template
- it fails
Possible Solution
No response
Additional Context
No response