ff2d004c35 
					 
					
						
						
							
							Fix   #19734 : PHP 8.1 compatibility fix for $query->orderBy(null)  
						
						
						
						
					 
					
						2023-01-13 10:59:54 +04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						161526cd41 
					 
					
						
						
							
							HTTPS everywhere ( #19503 )  
						
						
						
						
					 
					
						2022-08-03 12:32:18 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0041f034fd 
					 
					
						
						
							
							[doc] Update PHP doc links ( #18957 )  
						
						... 
						
						
						
						* Replace https://secure.php.net  with https://www.php.net 
* Replace http://www.php.net  with https://www.php.net  
						
						
					 
					
						2021-10-19 14:50:26 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6dad27d4a1 
					 
					
						
						
							
							Reversed  #18499  ( #18546 )  
						
						
						
						
					 
					
						2021-03-04 12:53:11 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d1037db68d 
					 
					
						
						
							
							Fix   #18499 : When using yii\db\Query::all() and yii\db\Query::$indexBy, the yii\db\Query::$indexBy is auto inserted into yii\db\Query::$select - the same as in yii\db\Query::column()  
						
						... 
						
						
						
						Co-authored-by: Bizley <pawel@positive.codes>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru> 
						
						
					 
					
						2021-02-23 18:44:39 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4ed14bb738 
					 
					
						
						
							
							Update QueryTrait property types  
						
						
						
						
					 
					
						2021-02-17 19:38:42 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bdb7c64910 
					 
					
						
						
							
							Update to https protocol for php.net links ( #17168 ) [skip ci]  
						
						... 
						
						
						
						* Updated php.net link for some MemCache properties [skip ci]
* Changed protocol to https for links to php.net in comments
* Changed protocol to https for links to php.net in code
* Changed www.php.net (http) to secure.php.net (https) in comments
* Changed www.php.net (http) to secure.php.net (https) in code
* Changed protocol to https for links to php.net in UPGRADE.md
* Changed protocol to https for links to pecl.php.net in comments
* Changed us.php.net to secure.php.net (https) in comments
* Changed protocol to https for links to php.net in docs
* Changed www.php.net (http) to secure.php.net (https) in docs
* Changed protocol to https for links to pecl.php.net in docs
* Changed ru/jp.php.net to secure.php.net (https) in docs
Don't sure about russian guide: is this links meant to be for guide on russian, or not? 
						
						
					 
					
						2019-02-28 13:09:27 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ae5dee485e 
					 
					
						
						
							
							Improve Query PHPDoc [skip ci]. ( #16834 )  
						
						
						
						
					 
					
						2018-10-27 20:37:56 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						00fe20e675 
					 
					
						
						
							
							Wrong annotations for yii\db\QueryTrait::where($condition)( #16794 ) ( #16803 ) [skip ci]  
						
						
						
						
					 
					
						2018-10-20 00:08:00 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d16586334d 
					 
					
						
						
							
							Fixes   #7640 : Implemented custom data types support. Added JSON support for MySQL and PostgreSQL, array support for PostgreSQL  
						
						
						
						
					 
					
						2018-02-05 04:59:14 +07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6330a2b779 
					 
					
						
						
							
							Small phpdoc fix in \yii\db\QueryTrait::emulateExecution() [skip ci] ( #15021 )  
						
						
						
						
					 
					
						2017-10-25 16:55:51 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						98a71d8b0d 
					 
					
						
						
							
							Adjust QueryInterface and QueryTrait types on where() ( #14714 )  
						
						... 
						
						
						
						these did never allow a string condition. Only SQL Query and AR implementation do.
fixes  #14496  
						
						
					 
					
						2017-08-24 10:59:20 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5a8c3d537b 
					 
					
						
						
							
							Enable phpdoc_summary rule in php-cs-fixer config ( #14675 )  
						
						... 
						
						
						
						* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc". 
						
						
					 
					
						2017-08-21 11:19:35 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1501c659ac 
					 
					
						
						
							
							Add empty lines before return statements. ( #14682 ) [skip ci]  
						
						
						
						
					 
					
						2017-08-21 01:58:49 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						fe8a0a6a2e 
					 
					
						
						
							
							Enable no_useless_else rule in php-cs-fixer ( #14420 )  
						
						
						
						
					 
					
						2017-07-10 11:26:21 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ba0ab403b5 
					 
					
						
						
							
							Added php-cs-fixer coding standards validation to Travis CI ( #14100 )  
						
						... 
						
						
						
						* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues. 
						
						
					 
					
						2017-06-12 12:25:45 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						11761ac42a 
					 
					
						
						
							
							Fix \yii\db\QueryTrait type hints ( #13956 ) [skip ci]  
						
						
						
						
					 
					
						2017-04-11 15:51:32 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						10b59ee6e4 
					 
					
						
						
							
							Merge branch 'master' into 13221_limit_offset_expression  
						
						
						
						
					 
					
						2017-02-22 17:02:04 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c19b2f7dc8 
					 
					
						
						
							
							release version 2.0.11  
						
						
						
						
					 
					
						2017-02-01 17:46:29 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5609e918de 
					 
					
						
						
							
							Fixed some malformed @var tags ( #13468 ) [skip ci]  
						
						
						
						
					 
					
						2017-01-30 11:42:52 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5488fc6e28 
					 
					
						
						
							
							fixes   #13221  
						
						... 
						
						
						
						Make \yii\db\QueryTrait::limit and \yii\db\QueryTrait::offset methods works with \yii\db\Expression 
						
						
					 
					
						2016-12-20 14:08:03 +07:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c17766181f 
					 
					
						
						
							
							Added QueryInterface::emulateExecution()  
						
						... 
						
						
						
						Added `QueryInterface::emulateExecution()`, which allows preventing of
the actual query execution.
This allows to cancel `DataProvider` preventing search query execution
in case search model is invalid:
``` php
public function search($params)
    {
        $query = Item::find();
        $dataProvider = new ActiveDataProvider([
            'query' => $query,
        ]);
        $this->load($params);
        if (!$this->validate()) {
            $query->where('0=1');
            $query->emulateExecution(); // No SQL execution will be done
            return $dataProvider;
        }
```
This also fix unecessary query in case of `via()` usage. See #12390 .
fixes  #12390 
fixes  #6373 
close  #12708  
						
						
					 
					
						2016-12-02 13:28:51 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4aa935e69e 
					 
					
						
						
							
							Fixes   #12055 : Changed boolean to bool and integer to int in phpdoc  
						
						
						
						
					 
					
						2016-11-07 02:51:39 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5a462dc5d2 
					 
					
						
						
							
							added tests and documentation for  #8824  
						
						
						
						
					 
					
						2016-01-27 16:26:43 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						61df727eaf 
					 
					
						
						
							
							Expression objects for orderBy should be handled in QueryBuilder  
						
						... 
						
						
						
						fixes  #10535 
close  #10637 
- Added test to prove orderBy accepts \yii\db\Expression 
					
						2016-01-23 09:27:54 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cd87d67f34 
					 
					
						
						
							
							Global DOCS update: ~~~ replaced with ```  
						
						
						
						
					 
					
						2015-12-02 23:15:28 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						67658cf57d 
					 
					
						
						
							
							Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly  
						
						
						
						
					 
					
						2015-05-31 13:39:30 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9df21d46f3 
					 
					
						
						
							
							reverted addition of $where property  
						
						
						
						
					 
					
						2014-09-24 13:39:03 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						222f9ddfad 
					 
					
						
						
							
							added missing documentation about the NOT operator in Query  
						
						... 
						
						
						
						fixes  #5147  
					
						2014-09-24 12:53:33 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						47ee0b87d4 
					 
					
						
						
							
							Removed unnecessary code  
						
						
						
						
					 
					
						2014-08-01 21:18:48 +04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b656137541 
					 
					
						
						
							
							Added support for arbitrary operators to Query::filterWhere, added support for arbitrary operators to Sphinx extension  
						
						
						
						
					 
					
						2014-08-01 21:11:24 +04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0edd8bc65a 
					 
					
						
						
							
							Fixed missing and incorrect phpdoc  
						
						
						
						
					 
					
						2014-07-25 17:26:35 +04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2f4a09ef53 
					 
					
						
						
							
							phpdoc  
						
						
						
						
					 
					
						2014-06-25 19:33:29 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6f7be5ee5c 
					 
					
						
						
							
							filterWhere for postgres ILIKE  
						
						... 
						
						
						
						fixes  #3252  
					
						2014-04-29 13:22:31 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						322e9e2385 
					 
					
						
						
							
							Fix BETWEEN and NOT BETWEEN conditions.  
						
						... 
						
						
						
						```
PHP Notice – yii\base\ErrorException
Undefined offset: 3
in .../yiisoft/yii2/db/QueryTrait.php at line 269
``` 
						
						
					 
					
						2014-04-17 21:42:11 +06:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0fa19291f1 
					 
					
						
						
							
							refactored filterWhere().  
						
						
						
						
					 
					
						2014-04-02 20:03:42 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						869d96ee0d 
					 
					
						
						
							
							Fixed test break.  
						
						
						
						
					 
					
						2014-04-02 15:25:08 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						745c20538c 
					 
					
						
						
							
							Merge pull request  #2885  branch 'query-filter'  
						
						... 
						
						
						
						* query-filter:
  added CHANGELOG lines
  added tests for redis
  added proper tests for elasticsearch
  removed unnecessary code duplication
  adjusted tests
  typo
  renamed Query::filter() to Query::filterWhere()
  reverted elasticsearch rename of filter
  Adjusted search model code generated by Gii CRUD generator
  Added support for arbitrary number of parameters for NOT, AND, OR in filter methods of Query
  Gii CRUD generator now uses new addFilter method
  Query::filter() adjustments
  fixes  #2002 
  Added tests for Query::filter()
Conflicts:
	framework/db/QueryTrait.php 
						
						
					 
					
						2014-04-02 19:33:40 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e9e59483f4 
					 
					
						
						
							
							removed unnecessary code duplication  
						
						
						
						
					 
					
						2014-04-02 19:07:13 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						96f1c4c10b 
					 
					
						
						
							
							renamed Query::filter() to Query::filterWhere()  
						
						
						
						
					 
					
						2014-04-02 18:48:14 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a35ef1ce7a 
					 
					
						
						
							
							added andOnCondition and orOnCondition to ActiveQuery  
						
						... 
						
						
						
						fixes  #2957  
					
						2014-04-02 16:17:50 +02:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8cd247730a 
					 
					
						
						
							
							Query::filter() adjustments  
						
						
						
						
					 
					
						2014-03-29 23:26:02 +04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3c1a8141fd 
					 
					
						
						
							
							fixes   #2002  
						
						
						
						
					 
					
						2014-03-27 12:41:16 +04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bf3c75147d 
					 
					
						
						
							
							reverted breaking PHPdoc codestyle changes  
						
						... 
						
						
						
						issue #2852  
						
						
					 
					
						2014-03-23 20:51:09 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b5f8a4dc22 
					 
					
						
						
							
							Reformat code te be PSR-2 compatible  
						
						
						
						
					 
					
						2014-03-16 10:46:21 +06:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						262189533a 
					 
					
						
						
							
							huge amount of documentation link fixes  
						
						
						
						
					 
					
						2014-01-28 17:54:40 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e27c3872ed 
					 
					
						
						
							
							doc improvements  
						
						
						
						
					 
					
						2014-01-28 15:17:11 +01:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0c38655217 
					 
					
						
						
							
							psr-4 move  
						
						
						
						
					 
					
						2014-01-10 21:41:43 -05:00