// app/src/MyBundle/Entity/Object.php
/**
* @ORM\ManyToMany(targetEntity="User")
* @ORM\JoinTable(name="object_redactors)
*/
private $redactor
/**
* @ORM\ManyToMany(targetEntity="User", inversedBy="objects")
* @ORM\JoinTable(name="objects_redactors")
*/
protected $redactors;
/**
* @ORM\ManyToMany(targetEntity="Object", mappedBy="redactors")
*/
protected $objects;