EntityCollection: add having() method