connectShortUrlId != $id) { $this->connect(get_db_connect($this->table, $id)); $this->sequence('id'); $this->connectShortUrlId = $id; } return $this; } public function getInfo($id) { //return $this->setConnect($id)->where(['id' => $id])->find(); return $this->where(['id' => $id])->find(); } }