Browse Source

Merge pull request #219 from baldurrensch/fix_persisten_collection

Fix doctrine persistent collections not serializing
Johannes 12 years ago
parent
commit
5124bf0651
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Serializer/Handler/ArrayCollectionHandler.php

+ 1 - 1
Serializer/Handler/ArrayCollectionHandler.php

@@ -17,7 +17,7 @@ class ArrayCollectionHandler implements SubscribingHandlerInterface
     {
         $methods = array();
         $formats = array('json', 'xml', 'yml');
-        $collectionTypes = array('ArrayCollection', 'Doctrine\Common\Collections\ArrayCollection');
+        $collectionTypes = array('ArrayCollection', 'Doctrine\Common\Collections\ArrayCollection', 'Doctrine\ORM\PersistentCollection');
 
         foreach ($collectionTypes as $type) {
             foreach ($formats as $format) {