Saving a Doctrine 2 Entity that contains an ObjectSelect element using Zend Form
问题 I was following along with the Doctrine Hydrator tutorial, but I am having issues saving when my fieldset contains an ObjectSelect. I'm using ORM mapping on my entities. Basically I have a Role entity with id and name . I also have a User entity with id , name and role (ManyToOne). I also have my getters and setters. My setRole() method passes the Role entity as a parameter. /** @param Role $role */ public function setRole(\Application\Entity\Role $role) { $this->role = $role; } I setup a