Bläddra i källkod

removed call to ->load

Robert Gruendler 13 år sedan
förälder
incheckning
4b8a2a9d0f
1 ändrade filer med 0 tillägg och 8 borttagningar
  1. 0 8
      Form/ChoiceList/ModelChoiceList.php

+ 0 - 8
Form/ChoiceList/ModelChoiceList.php

@@ -162,10 +162,6 @@ class ModelChoiceList extends SimpleChoiceList
      */
     public function getEntities()
     {
-        if (!$this->loaded) {
-            $this->load();
-        }
-
         return $this->entities;
     }
 
@@ -186,10 +182,6 @@ class ModelChoiceList extends SimpleChoiceList
      */
     public function getEntity($key)
     {
-        if (!$this->loaded) {
-            $this->load();
-        }
-
         if (count($this->identifier) > 1) {
             // $key is a collection index
             $entities = $this->getEntities();