fix doctrine closed entity