maker-bundle: Regenerate doesn't work if there is an Embedded property in Entity

Hi, thanks for maker-bundle, it’s a very powerful tool! ❤️

I tried to regenerate an Entity that contains a @ORM\Embedded() property.

Here the steps to reproduce the bug:

  • Run make:entity with some fields
  • Add a @ORM\Embedded() property to this entity
  • Try to regenerate the entity getters/setters

💥

The output is:

$ bin/console make:entity --regenerate --overwrite

 This command will generate any missing methods (e.g. getters & setters) for a class or all classes in a namespace.

 To overwrite any existing methods, re-run this command with the --overwrite flag

 Enter a class or namespace to regenerate [App\Entity]:
 > App\Entity\Product


In ClassMetadataInfo.php line 3325:

  Notice: Trying to get property 'name' of non-object

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 16 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Hi @dimabory, I haven’t fix the issue yet. I’m still working on it on my free time 😉