public function getId() { if (!$this->id) { $this->id = uniqid(); } return $this->id; }
public function __construct(User $user, $comment) { $this->setParent($user->getId()); $this->comment = $comment; }