Add get_fields method to orm.Entity