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