Symfony2 many-to-many checkboxes
Remove @ORM\JoinTable
from your Item entity like so:
class Item{ //.. /** * @ORM\ManyToMany(targetEntity="Store", inversedBy="items", cascade="persist"}) */ private $stores;}
Doctrine provides sensible default values for the join tables, and you override those with something that doesn't work. By removing @ORM\JoinTable
it should work again.
Unfortunately I never use the annotation mapping and can't tell you where exactly the error was.
Here is how to use @ORM\JoinTable
if you need non-default table or column names: http://doctrine-orm.readthedocs.org/en/latest/reference/association-mapping.html#many-to-many-self-referencing