/** * {@inheritDoc} */ public function getSerializableProperties() { $properties = parent::getSerializableProperties(); // all we need to persist for the cart $properties['contents'] = $this->contents; $properties['comments'] = $this->comments; $properties['accountId'] = $this->accountId; return $properties; }