Edit View with Update Table - Undefined method named "merge"

(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.

It did not work. I deleted the folder and generated again but got the same error after update template.

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.

Still not work I deleted the whole project folder and re-generated the project and used v2026.3

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).

  1. Download and try v2026.4.
  2. Delete all files in your project folder (including var/cache) and generate again.

Did not work.

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.