public function __construct($name) { $this->name = $name; $this->others = new ArrayCollection(); $this->friends = new ArrayCollection(); }