_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); } }