浏览代码

Merge pull request #219 from baldurrensch/fix_persisten_collection

Fix doctrine persistent collections not serializing
Johannes 12 年之前
父节点
当前提交
5124bf0651
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {