entity 'type' field; sonata admin base class; template repository definition