public function __construct($id = null, $exclude = true) { if ($this->_model === null) { throw new Exception('$this->_model is null'); } $model = $this->_model; $this->_object = new $model($id); parent::__construct($exclude); }