public function __construct(User $user, \Newscoop\NewscoopBundle\Entity\Topic $topic) { $this->user = $user; $this->topic = $topic; }