Grid_Advanced: replace model->getEntityCode() with model->table