setPost($post) ->setComment($comment) ->setIsEnabled(false) ->setHash(hash('sha256', bin2hex(random_bytes(32)))) ; return $entity; } }