public function getStateToSave() { $state = parent::getStateToSave(); $state['items'] = serialize($state['items']); unset($state['update_messages'], $state['updated_at'], $state['completed_at'], $state['total'], $state['subtotal']); return $state; }