浏览代码

Add Doctrine\ODM\PHPCR\ChildrenCollection to ArrayCollectionHandler

Philipp Wahala 12 年之前
父节点
当前提交
34e5933ffa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/JMS/Serializer/Handler/ArrayCollectionHandler.php

+ 1 - 1
src/JMS/Serializer/Handler/ArrayCollectionHandler.php

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