public function init() { parent::init(); $this->db = Instance::ensure($this->db, Connection::className()); }