Don't store the full object in the `->pages` array, just the ID - otherwise you'll be having the full object serialised.