Skip to content

Proxies with DoctrineΒ #57

@lashermes

Description

@lashermes

Hi !

When we use Doctrine wich returns proxies, the mapper could not map : it maps property to null.

Is there a solution ?

example dump doctrine result :

App\Entity\Company {#584
  -id: 81
  -secteur: Proxies\__CG__\App\Entity\Secteur {
    -id: 1
    -name: null
  }

dump($company->getSecteur->getName()) : returns a string

but the mapper found "null"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions