I have an association like below:
/**
* @var Worker
*
* @ORM\ManyToMany(targetEntity="AppBundle\Entity\Worker",
inversedBy="device")
* @ORM\JoinTable(name="devices_to_workers",
* joinColumns={
* @ORM\JoinColumn(name="device_id", referencedColumnName="id")
You probably created proxies with one user, then tried to overwrite them
with a different user.
In general, at least for prod environments, you should ship with
pre-generated proxy classes.
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On Mon, Aug 15, 2016 at 7:50 PM,