소스 검색

fix doctrine ODM persistent collections

Matt Drollette 12 년 전
부모
커밋
e7f9242e17
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Serializer/Handler/ArrayCollectionHandler.php

+ 1 - 1
Serializer/Handler/ArrayCollectionHandler.php

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