DDC-1002: bug in generate entities with many2many relationships from xml/yml shcemes #1587

doctrinebot opened this Issue Jan 25, 2011 · 2 comments

2 participants


Jira issue originally created by user stfalcon:

I try use many2many relations in my symfony2 learning project https://github.com/symfony/symfony.git
But entities thar generates from yml schemes did not meet entities from doctrine2 guide or entities from beberlei Whitewashing project https://github.com/beberlei/Whitewashing/tree/master/Blog

After that I try generate similar entitries is doctrine2-sandbox. Problem is the same
I attached yml schemes and result entities.


  • Entities\Address does not have relations with Entities\User
  • In Entities\User property $adresses instance of Entity\Address. But this Doctrine\Common\Collections\ArrayCollection or no?``` /****
    • @var Entity\Address */ private $addresses;```
  • In Entities\User not at **constructor() method:
    public function **construct()
        $this->addresses = new ArrayCollection();

Comment created by @beberlei:

Fixed the msising constructor. However mind that in my Whitewashing project i wrote the entities manually, not generated them!


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0.2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment