public function getModelManager($type) { if (!isset($this->managers[$type])) { throw new ServerErrorException(); } return $this->managers[$type]; }