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.