public function __construct(User $user, $comment) { $this->setParent($user->getId()); $this->comment = $comment; }