entity: adapter definition required only in queries
rules and messages property path, nested entity validation
getFlattenMessages fix
path is optional