Skip to content

DoctrineOrmTypeGuesser throw an exception with embedded class #26543

@pink6440

Description

@pink6440
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.4.4

The use case :

  • i got a doctrine embeddable (example: Identity)
  • in forms, i want that my IdentityFormType to be used automatically

So :

  • i make a Type Guesser which handle guessing for property of type Identity (as embeddable)

But :

  • as all guessers are trieds by the ChainGuesser
  • as the DoctrineOrmTypeGuesser threw an exception

So : that doesn't work

The Exception :
No mapping found for field 'identite' on class 'NSF\CoreBundle\Entity\Client'.
in vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\MappingException.php (line 163)

My solution was to fix (in my way) into the DoctrineOrmTypeGuesser and to use my updated class with composer/autoload/file directive.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy