浏览代码

Fix bug introduce in the last commit

Thomas Rabaix 14 年之前
父节点
当前提交
f9f78d0e05
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Form/ChoiceList/ModelChoiceList.php

+ 1 - 1
Form/ChoiceList/ModelChoiceList.php

@@ -85,7 +85,7 @@ class ModelChoiceList extends ArrayChoiceList
             $this->propertyPath = new PropertyPath($property);
         }
 
-        parent::__construct($choices);
+        $this->choices = $choices;
     }
 
     /**