src/proxy/ClientTable.php
private function insertData($data)
    {
        $inserted = Yii::$app->db->createCommand()->batchInsert(
            $this->getName(),
            $this->cleanUpBatchInsertFields($this->getFields()),
            $this->cleanUpMatchRow($data)
        )->execute();

        return $inserted;
    }
private function insertData($data)
    {
        $inserted = Yii::$app->db->createCommand()->batchInsert(
            $this->getName(),
            $this->cleanUpBatchInsertFields($this->getFields()),
            $this->cleanUpMatchRow($data)
        )->execute();

        return $inserted;
    }
private function insertData ( $ data ) { $ inserted = Yii :: $ app -> db -> createCommand ( ) -> batchInsert ( $ this -> getName ( ) , $ this -> cleanUpBatchInsertFields ( $ this -> getFields ( ) ) , $ this -> cleanUpMatchRow ( $ data ) ) -> execute ( ) ; return $ inserted ; }
Write the given data to the database.

@param $data
@throws \yii\db\Exception
@return int
Write the given data to the database .