Changed wrong function name getSingeResult to getSingleResult