Since: 2.0
Author: Qiang Xue (qiang.xue@gmail.com)
Inheritance: extends yii\db\QueryBuilder
Example #1
0
 /**
  * Constructor.
  * @param Connection $connection the database connection.
  * @param array $config name-value pairs that will be used to initialize the object properties
  */
 public function __construct($connection, $config = [], $textType = 'mediumtext')
 {
     $this->typeMap[Schema::TYPE_TEXT] = $textType;
     parent::__construct($connection, $config);
 }
 /**
  * @param $table
  * @param $condition
  *
  * @return array
  */
 public function createDeleteSqlAndParams($table, $condition)
 {
     $sql = $this->queryBuilder->delete($table, $condition, $params);
     return [$sql, $params];
 }