Entity::get() function, using late static bindings to make it easier to retrieve objects of a particular type.