(v2026)
I am getting this error:
UndefinedMethodError: Attempted to call an undefined method named "merge" of class "ContainerZpsSvxx\EntityManagerGhost335de12".
$updateTableRow = $em->merge($updateTableRow); // Make the new entity managed
When I try to edit view, it is giving the above error.
Click Tools -> Update Template and try again.
gagupta
December 11, 2025, 1:55pm
3
It did not work. I deleted the folder and generated again but got the same error after update template.
arbei
December 11, 2025, 2:41pm
4
Make sure you are using v2026.3 (the latest version as of today) and not v2026.2.
Also make sure you have deleted old cache, read Clearing Symfony Cache .
gagupta
December 15, 2025, 3:10am
5
Still not work I deleted the whole project folder and re-generated the project and used v2026.3
arbei
December 15, 2025, 4:28am
6
There is no such code as $em->merge() in the latest template of v2026.3 anymore. The error is from cache, are you sure you have deleted cache?
You may also delete var/cache/dev folder directly (if you are using "Development" environment).
arbei
December 17, 2025, 3:55am
9
There is no $em->merge() in the latest template (v2026.3 and v2026.4) anymore. If you still see the same error, you are still using either old template or old cache. You may want to double check carefully:
Make sure you use v2026.4.
Delete C:\Users\<user>\AppData\Roaming\phpmaker2026 and open PHPMaker again.
Read and follow Clearing Symfony Cache again.
If problem remains, you better enable Debug , check the log file and post the complete stack trace for discussion.