You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My previous Symfony version was 6.3.8 , But when I run composer update to update all packages with symfony versions I am getting this error: An exception has been thrown during the rendering of a template ("Cannot access uninitialized non-nullable property ArticleCombine::$articlePriceOptions by reference").
Symfony version(s) affected
6.3.10
Description
My previous Symfony version was 6.3.8 , But when I run
composer update
to update all packages with symfony versions I am getting this error:An exception has been thrown during the rendering of a template ("Cannot access uninitialized non-nullable property ArticleCombine::$articlePriceOptions by reference").
How to reproduce
Entity :
ArticleCombine.php
Entity:
ArticlePrice.php
Custom Twig Extension:
Calling the function in twig :
Possible Solution
No response
Additional Context
If I dont use twig extension, and do something like this in a Controller:
This works totally fine. It seems Its only happeing when getthing this value through twig extension.
The text was updated successfully, but these errors were encountered: