add return id to puser entity in toArray mothod