Model: added exception when T_STRING is not used as entity class name