--TEST-- SolrDocument - clone --SKIPIF-- --FILE-- response->docs[1]; $serializedString = serialize($doc); print_r($serializedString); echo PHP_EOL; print_r(unserialize($serializedString)->toArray()); ?> --EXPECT-- O:12:"SolrDocument":1:{s:3:"xml";s:172:" parent_2 ";} Array ( [document_boost] => 0 [field_count] => 1 [fields] => Array ( [0] => SolrDocumentField Object ( [name] => id [boost] => 0 [values] => Array ( [0] => parent_2 ) ) ) )