add getActiveComments function in Entry model.