public function getDatabaseInfo() { $this->connected || $this->connect(); return new Reflection\Database($this->driver->getReflector(), isset($this->config['database']) ? $this->config['database'] : NULL); }
/** * @return mixed */ private function getPrimaryKey() { $primaryKey = $this->db->getDatabaseInfo()->getTable($this->tableName)->getPrimaryKey()->getColumns(); return $primaryKey[0]->name; }