When I try to add an item into an assication
/**
* In Note class
* @var \Doctrine\Common\Collections\ArrayCollection
*
* @ORM\ManyToMany(targetEntity="User")
*/
protected $responders;
// in controller: line 80, where error occurs
$note->getResponders()->add($user);
I get
Call to undefined method Proxies…UserBundleEntityUserProxy::add() in …\Controller\NotesController.php on line 80
Whats wrong?
UPDATE
I noticed its looking under UserProxy for the add method, shouldn’t it be in the NoteProxy? Since responders is in the Note class?
Ok my question got answered on Doctrine Google Groups. It was a copy & paste error