Correction, make public instead of protected attributes of Query and ItemMetaData. For cache support with __set_state.