Model: getEntityCode is obsolete for a long time

Let's remove it at last. $model->entity_code was only used in SQL_Model and even then it's obsolete and always will be unset.
Grid_Advanced: replace model->getEntityCode() with model->table
Merge pull request #378 from DarkSide666/patch-3

Model: getEntityCode is obsolete for a long time