init
This commit is contained in:
+222
@@ -0,0 +1,222 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
||||
* @link https://cakephp.org CakePHP(tm) Project
|
||||
* @since 4.5.0
|
||||
* @license https://opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
namespace Cake\Database\Query;
|
||||
|
||||
use Cake\Database\Query;
|
||||
|
||||
/**
|
||||
* Delete Query forward compatibility shim.
|
||||
*/
|
||||
class DeleteQuery extends Query
|
||||
{
|
||||
/**
|
||||
* Type of this query (select, insert, update, delete).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_type = 'delete';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function select($fields = [], bool $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('select()', 'Create your query with selectQuery() instead.');
|
||||
|
||||
return parent::select($fields, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function distinct($on = [], $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('distint()');
|
||||
|
||||
return parent::distinct($on, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function modifier($modifiers, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('modifier()');
|
||||
|
||||
return parent::modifier($modifiers, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function order($fields, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('order()');
|
||||
|
||||
return parent::order($fields, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function orderAsc($field, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('orderAsc()');
|
||||
|
||||
return parent::orderAsc($field, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function orderDesc($field, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('orderDesc()');
|
||||
|
||||
return parent::orderDesc($field, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function group($fields, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('group()');
|
||||
|
||||
return parent::group($fields, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function having($conditions = null, $types = [], $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('having()');
|
||||
|
||||
return parent::having($conditions, $types, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function andHaving($conditions, $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('andHaving()');
|
||||
|
||||
return parent::andHaving($conditions, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function page(int $num, ?int $limit = null)
|
||||
{
|
||||
$this->_deprecatedMethod('page()');
|
||||
|
||||
return parent::page($num, $limit);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function limit($limit)
|
||||
{
|
||||
$this->_deprecatedMethod('limit()');
|
||||
|
||||
return parent::limit($limit);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function offset($offset)
|
||||
{
|
||||
$this->_deprecatedMethod('offset()');
|
||||
|
||||
return parent::offset($offset);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function union($query, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('union()');
|
||||
|
||||
return parent::union($query, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function unionAll($query, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('unionAll()');
|
||||
|
||||
return parent::unionAll($query, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function insert(array $columns, array $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('insert()', 'Create your query with insertQuery() instead.');
|
||||
|
||||
return parent::insert($columns, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function into(string $table)
|
||||
{
|
||||
$this->_deprecatedMethod('into()');
|
||||
|
||||
return parent::into($table);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function values($data)
|
||||
{
|
||||
$this->_deprecatedMethod('values()');
|
||||
|
||||
return parent::values($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function update($table)
|
||||
{
|
||||
$this->_deprecatedMethod('update()', 'Create your query with updateQuery() instead.');
|
||||
|
||||
return parent::update($table);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function set($key, $value = null, $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('set()');
|
||||
|
||||
return parent::set($key, $value, $types);
|
||||
}
|
||||
}
|
||||
+322
@@ -0,0 +1,322 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
||||
* @link https://cakephp.org CakePHP(tm) Project
|
||||
* @since 4.5.0
|
||||
* @license https://opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
namespace Cake\Database\Query;
|
||||
|
||||
use Cake\Database\Query;
|
||||
|
||||
/**
|
||||
* Insert Query forward compatibility shim.
|
||||
*/
|
||||
class InsertQuery extends Query
|
||||
{
|
||||
/**
|
||||
* Type of this query (select, insert, update, delete).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_type = 'insert';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function delete(?string $table = null)
|
||||
{
|
||||
$this->_deprecatedMethod('delete()', 'Create your query with deleteQuery() instead.');
|
||||
|
||||
return parent::delete($table);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function select($fields = [], bool $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('select()', 'Create your query with selectQuery() instead.');
|
||||
|
||||
return parent::select($fields, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function distinct($on = [], $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('distinct()');
|
||||
|
||||
return parent::distinct($on, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function modifier($modifiers, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('modifier()');
|
||||
|
||||
return parent::modifier($modifiers, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function join($tables, $types = [], $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('join()');
|
||||
|
||||
return parent::join($tables, $types, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function removeJoin(string $name)
|
||||
{
|
||||
$this->_deprecatedMethod('removeJoin()');
|
||||
|
||||
return parent::removeJoin($name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function leftJoin($table, $conditions = [], $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('leftJoin()');
|
||||
|
||||
return parent::leftJoin($table, $conditions, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function rightJoin($table, $conditions = [], $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('rightJoin()');
|
||||
|
||||
return parent::rightJoin($table, $conditions, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function innerJoin($table, $conditions = [], $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('innerJoin()');
|
||||
|
||||
return parent::innerJoin($table, $conditions, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function group($fields, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('group()');
|
||||
|
||||
return parent::group($fields, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function having($conditions = null, $types = [], $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('having()');
|
||||
|
||||
return parent::having($conditions, $types, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function andHaving($conditions, $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('andHaving()');
|
||||
|
||||
return parent::andHaving($conditions, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function page(int $num, ?int $limit = null)
|
||||
{
|
||||
$this->_deprecatedMethod('page()');
|
||||
|
||||
return parent::page($num, $limit);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function offset($offset)
|
||||
{
|
||||
$this->_deprecatedMethod('offset()');
|
||||
|
||||
return parent::offset($offset);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function union($query, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('union()');
|
||||
|
||||
return parent::union($query, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function unionAll($query, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('union()');
|
||||
|
||||
return parent::unionAll($query, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function from($tables = [], $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('from()', 'Use into() instead.');
|
||||
|
||||
return parent::from($tables, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function update($table)
|
||||
{
|
||||
$this->_deprecatedMethod('update()', 'Create your query with updateQuery() instead.');
|
||||
|
||||
return parent::update($table);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function set($key, $value = null, $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('set()');
|
||||
|
||||
return parent::set($key, $value, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function where($conditions = null, array $types = [], bool $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('where()');
|
||||
|
||||
return parent::where($conditions, $types, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function whereNotNull($fields)
|
||||
{
|
||||
$this->_deprecatedMethod('whereNotNull()');
|
||||
|
||||
return parent::whereNotNull($fields);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function whereNull($fields)
|
||||
{
|
||||
$this->_deprecatedMethod('whereNull()');
|
||||
|
||||
return parent::whereNull($fields);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function whereInList(string $field, array $values, array $options = [])
|
||||
{
|
||||
$this->_deprecatedMethod('whereInList()');
|
||||
|
||||
return parent::whereInList($field, $values, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function whereNotInList(string $field, array $values, array $options = [])
|
||||
{
|
||||
$this->_deprecatedMethod('whereNotInList()');
|
||||
|
||||
return parent::whereNotInList($field, $values, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function whereNotInListOrNull(string $field, array $values, array $options = [])
|
||||
{
|
||||
$this->_deprecatedMethod('whereNotInListOrNull()');
|
||||
|
||||
return parent::whereNotInListOrNull($field, $values, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function andWhere($conditions, array $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('andWhere()');
|
||||
|
||||
return parent::andWhere($conditions, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function order($fields, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('order()');
|
||||
|
||||
return parent::order($fields, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function orderAsc($field, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('orderAsc()');
|
||||
|
||||
return parent::orderAsc($field, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function orderDesc($field, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('orderDesc()');
|
||||
|
||||
return parent::orderDesc($field, $overwrite);
|
||||
}
|
||||
}
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
||||
* @link https://cakephp.org CakePHP(tm) Project
|
||||
* @since 4.5.0
|
||||
* @license https://opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
namespace Cake\Database\Query;
|
||||
|
||||
use Cake\Database\Connection;
|
||||
use Cake\Database\Query;
|
||||
|
||||
/**
|
||||
* Select Query forward compatibility shim.
|
||||
*/
|
||||
class SelectQuery extends Query
|
||||
{
|
||||
/**
|
||||
* Type of this query (select, insert, update, delete).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_type = 'select';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function delete(?string $table = null)
|
||||
{
|
||||
$this->_deprecatedMethod('delete()', 'Create your query with deleteQuery() instead.');
|
||||
|
||||
return parent::delete($table);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function insert(array $columns, array $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('insert()', 'Create your query with insertQuery() instead.');
|
||||
|
||||
return parent::insert($columns, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function into(string $table)
|
||||
{
|
||||
$this->_deprecatedMethod('into()', 'Use from() instead.');
|
||||
|
||||
return parent::into($table);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function values($data)
|
||||
{
|
||||
$this->_deprecatedMethod('values()');
|
||||
|
||||
return parent::values($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function update($table)
|
||||
{
|
||||
$this->_deprecatedMethod('update()', 'Create your query with updateQuery() instead.');
|
||||
|
||||
return parent::update($table);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function set($key, $value = null, $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('set()');
|
||||
|
||||
return parent::set($key, $value, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the connection role.
|
||||
*
|
||||
* @param string $role Connection role ('read' or 'write')
|
||||
* @return $this
|
||||
*/
|
||||
public function setConnectionRole(string $role)
|
||||
{
|
||||
assert($role === Connection::ROLE_READ || $role === Connection::ROLE_WRITE);
|
||||
$this->connectionRole = $role;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the connection role to read.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function useReadRole()
|
||||
{
|
||||
return $this->setConnectionRole(Connection::ROLE_READ);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the connection role to write.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function useWriteRole()
|
||||
{
|
||||
return $this->setConnectionRole(Connection::ROLE_WRITE);
|
||||
}
|
||||
}
|
||||
+182
@@ -0,0 +1,182 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
||||
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
||||
* @link https://cakephp.org CakePHP(tm) Project
|
||||
* @since 4.5.0
|
||||
* @license https://opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
namespace Cake\Database\Query;
|
||||
|
||||
use Cake\Database\Query;
|
||||
|
||||
/**
|
||||
* Update Query forward compatibility shim.
|
||||
*/
|
||||
class UpdateQuery extends Query
|
||||
{
|
||||
/**
|
||||
* Type of this query (select, insert, update, delete).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_type = 'update';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function delete(?string $table = null)
|
||||
{
|
||||
$this->_deprecatedMethod('delete()', 'Create your query with deleteQuery() instead.');
|
||||
|
||||
return parent::delete($table);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function select($fields = [], bool $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('select()', 'Create your query with selectQuery() instead.');
|
||||
|
||||
return parent::select($fields, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function distinct($on = [], $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('distinct()');
|
||||
|
||||
return parent::distinct($on, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function modifier($modifiers, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('modifier()');
|
||||
|
||||
return parent::modifier($modifiers, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function group($fields, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('group()');
|
||||
|
||||
return parent::group($fields, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function having($conditions = null, $types = [], $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('having()');
|
||||
|
||||
return parent::having($conditions, $types, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function andHaving($conditions, $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('andHaving()');
|
||||
|
||||
return parent::andHaving($conditions, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function page(int $num, ?int $limit = null)
|
||||
{
|
||||
$this->_deprecatedMethod('page()');
|
||||
|
||||
return parent::page($num, $limit);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function offset($offset)
|
||||
{
|
||||
$this->_deprecatedMethod('offset()');
|
||||
|
||||
return parent::offset($offset);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function union($query, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('union()');
|
||||
|
||||
return parent::union($query, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function unionAll($query, $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('union()');
|
||||
|
||||
return parent::unionAll($query, $overwrite);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function insert(array $columns, array $types = [])
|
||||
{
|
||||
$this->_deprecatedMethod('insert()', 'Create your query with insertQuery() instead.');
|
||||
|
||||
return parent::insert($columns, $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function into(string $table)
|
||||
{
|
||||
$this->_deprecatedMethod('into()', 'Use update() instead.');
|
||||
|
||||
return parent::into($table);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function values($data)
|
||||
{
|
||||
$this->_deprecatedMethod('values()');
|
||||
|
||||
return parent::values($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function from($tables = [], $overwrite = false)
|
||||
{
|
||||
$this->_deprecatedMethod('from()', 'Use update() instead.');
|
||||
|
||||
return parent::from($tables, $overwrite);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user