Skip to content

Connection is being assigned to EntityManager object #126

@jdgomez

Description

@jdgomez

Hi all, it's my first time opening a Issue, so bear with me if some process is not followed properly.

In our recent logs we detected the following error:

console.CRITICAL: Error thrown while running command "scheduler:execute". Message: "Cannot assign Doctrine\DBAL\Connection to property Dukecity\CommandSchedulerBundle\Service\CommandSchedulerExecution::$em of type Doctrine\Persistence\ObjectManager"

Checking the code I found the following:
.../vendor/dukecity/command-scheduler-bundle/Service/CommandSchedulerExecution.php

image

In the file history I found that this was changed really long time ago
792316a

I am not sure if this is really an issue, because nobody complained in more than a year, but on the other side, the code is clearly assigning a Connection Type object to a EntityManager Type Object, there is no way this line will not throw an error.

Can anyone confirm if this is really a bug or just I am misunderstood?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions