Skip to content

EntityManager - Cannot bind an instance to a static closure #33037

Closed
@stevro

Description

@stevro

Symfony version(s) affected: 4.4.*
PHP Version: PHP 7.3.7-2+ubuntu18.04.1

Description
PHP Warning: Cannot bind an instance to a static closure in /tmp/intima/cache/ContainerXozEiPa/EntityManager_9a5be93.php on line 317
!! PHP Fatal error: Uncaught Error: Call to a member function __invoke() on null in /tmp/intima/cache/ContainerXozEiPa/EntityManager_9a5be93.php:317
!! Stack trace:
!! #0 /tmp/intima/cache/ContainerXozEiPa/srcApp_KernelDevDebugContainer.php(399): EntityManager_9a5be93::staticProxyConstructor(Object(Closure))
!! #1 /tmp/intima/cache/ContainerXozEiPa/srcApp_KernelDevDebugContainer.php(235): ContainerXozEiPa\srcApp_KernelDevDebugContainer->ContainerXozEiPa{closure}()
!! #2 /tmp/intima/cache/ContainerXozEiPa/srcApp_KernelDevDebugContainer.php(400): ContainerXozEiPa\srcApp_KernelDevDebugContainer->createProxy('EntityManager_9...', Object(Closure))
!! #3 /tmp/intima/cache/ContainerXozEiPa/srcApp_KernelDevDebugContainer.php(2096): ContainerXozEiPa\srcApp_KernelDevDebugContainer->getDoctrine_Orm_DefaultEntityManagerService()
!! #4 /tmp/intima/cache/ContainerXozEiPa/getValidator_Mapping_CacheWarmerService.php(9): ContainerXozEiPa\srcApp_KernelDevDebugContainer->getValidator_BuilderService()
!! #5 /tmp/intima/cache/ContainerXozEiPa/srcApp_KernelDevDebugConta in /tmp/intima/cache/ContainerXozEiPa/EntityManager_9a5be93.php on line 317

How to reproduce
Update Symfony to latest version 4.4.*
Run cache:clear

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions