Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DoctrineOrmTypeGuesser throw an exception with embedded class #26543

Copy link
Copy link
Closed
@pink6440

Description

@pink6440
Issue body actions
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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.