public function __construct(Comment $entity) { $this->content = (string) $entity->getContent(); $this->userName = (string) $entity->getUserName(); $this->userEmail = (string) $entity->getUserEmail(); $this->userWeb = (string) $entity->getUserWeb(); $this->status = (int) $entity->getStatus(); }