public function toPersistenceValue(SPIValue $value) { // Store original data as external (to indicate they need to be stored) return new FieldValue(array('data' => null, 'externalData' => $this->toHash($value), 'sortKey' => $this->getSortInfo($value))); }