public function __construct(User $user) { $this->user = $user; $this->tags = new ArrayCollection(); }