Added promise method to Entity