/** * 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]; }