public function getEntity($key) { if (!isset($this->data[$key])) { return null; } $current = $this->data[$key]; $current->setPreloadContainer($this); return $current; }