699d7a7912
Fix #20432 : Fix PHPStan/Psalm annotations for ActiveQuery::asArray
2025-07-09 18:46:20 +03:00
8b50a4942a
Fix @var tags syntax in framework folder ( #20392 )
2025-06-03 19:57:08 +03:00
2b6f0be715
Added and fixed Psalm/PHPStan annotations for ActiveRecord and ActiveQuery ( #20363 )
2025-04-28 22:27:06 +03:00
6dbdeb9091
save ( #20361 )
2025-04-27 12:12:12 +03:00
06bd683d21
Add generic types for ActiveRecord and Container ( #20325 )
...
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2025-02-21 19:00:43 +03:00
52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
a292af13bf
[PHP 8.4] Fixes for implicit nullability deprecation ( #20133 )
...
Fixes all issues that emit deprecation notices on PHP 8.4 for implicit nullable parameter type declarations.
Related to #20128 .
See:
- [RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types )
- [PHP 8.4: Implicitly nullable parameter declarations deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated )
Co-authored-by: Wilmer Arambula <terabytesoftw@gmail.com>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2024-03-26 11:27:58 +03:00
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
4628b91e73
Fix types ( #19332 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
2022-03-30 18:40:10 +02:00
82be8b61cf
Replacing deprecated ::className()
with ::class
( #18671 )
2021-05-22 23:14:54 +03:00
b7d8730044
Fix #16092 : Fix duplicate joins in usage of joinWith
2020-03-04 17:57:07 +03:00
2da6773b68
Fixes #17089 : Fixed caching of related records when via()
using with callable
2019-02-13 23:22:07 +03:00
025dd072c6
Replaces commit dfcf037c7. The prvious idea was wrong and broke some tests
2019-01-20 13:50:27 +02:00
dfcf037c76
ActiveQuery::viaTable() now throws exception on wrongly prepared query
...
Closes #15876
2019-01-20 12:33:26 +02:00
682c7b4a2a
added comment about non-looping foreach
...
fixes #16727
2018-10-05 17:50:03 +02:00
7119ff5756
Fixes #16151 : Change of scope for method getTableNameAndAlias()
2018-09-19 19:31:43 +03:00
5ee7fabbf9
Fixes #16552 : Added check in yii\db\ActiveQuery::prepare()
to prevent populating already populated relation when another relation is requested with via
2018-09-09 23:44:10 +03:00
cd442339df
Revert "Fixes #16552 : Added check in yii\db\ActiveQuery::prepare()
to prevent populating already populated relation when another relation is requested with via
"
...
This reverts commit f69612f7927ee8e599a22a0b83b73f64b628b8f0.
2018-09-08 00:37:22 +03:00
f69612f792
Fixes #16552 : Added check in yii\db\ActiveQuery::prepare()
to prevent populating already populated relation when another relation is requested with via
2018-08-04 01:20:17 +03:00
1a74b3d4f8
[minor] SCA with Php Inspections (EA Ultimate) ( #15871 )
...
* Php Inspections (EA Ultimate): use type casting where applicable
* Php Inspections (EA Ultimate): use constants where applicable
* Php Inspections (EA Ultimate): CS
* Php Inspections (EA Ultimate): address some of one-time used variables
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): revert a constant usage
* Php Inspections (EA Ultimate): revert sequential assignments
* Php Inspections (EA Ultimate): build is green again
* Php Inspections (EA Ultimate): revert array_merge tweaks
* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak
* Update description [skip ci]
* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
c3c9d1fd97
Merge branch 'master' into SamMousa-indexby-after-relations-9342
...
Conflicts:
framework/db/Query.php
2018-02-15 23:38:06 +02:00
5bd6ed5684
Fixed issues in accidental merge of unfinished #15398
2018-02-10 14:10:14 +02:00
a036fac490
Extract cache from yii\db\Command
to yii\db\CacheableQueryTrait
and use it in yii\db\Query
2018-02-10 12:30:58 +02:00
65f6b59b35
@inheritdoc
notation changed
2018-01-23 13:11:24 +02:00
f8990ac97a
Fixes #15353 : Remove side effect of ActiveQuery::getTablesUsedInFrom() introduced in 2.0.13
2018-01-15 13:02:28 +03:00
2d672b6722
release version 2.0.13
2017-11-03 01:09:29 +03:00
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
2017-10-19 01:54:40 +03:00
afd59a18ec
Merge branch 'master' into indexby-after-relations-9342
2017-10-08 00:52:14 +02:00
5522d1909c
Clarify how joinWith()/innerJoinWith() deals with eager loading [skip ci]
2017-09-19 23:43:23 +02:00
d68789a195
Fixes #13779 , fixes #5786
...
- #13779 : Fixed `yii\db\ActiveRecord::joinWith()` unable to use relation defined via attached behavior.
- #5786 : Allowed to use custom constructors in ActiveRecord-based classes.
2017-08-29 15:13:28 +03:00
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
173108b5b0
Move getTablesUsedInFrom() from ActiveQuery to Query
...
enable this feature on the Query level
close #14431
2017-07-12 12:26:20 +02: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
be658f82bf
release version 2.0.12
2017-06-05 16:33:41 +02:00
9b8b965fcb
Fixes #14211 : Fixed regression in Unique and Exist validators
2017-05-26 00:31:30 +03:00
625d554e3a
Additional edge case for #14150
2017-05-12 18:06:27 +03:00
8a087c8537
#14150 : Added {{ and }} to getTablesUsedInFrom() output
2017-05-12 15:55:37 +03:00
b151b1cdb2
Fixes #14150
2017-05-12 14:17:23 +03:00
23cc4bf4fe
Further changes for unique and exist validators
...
- Combined methods for getting names and aliases of from tables
- Normalized names and aliases
- Added MSSQL syntax
- Added support for spaces in aliases and table names
2017-05-10 00:35:40 +03:00
37fc6c5afb
Alternative names
2017-04-26 15:36:36 +03:00
63253ceafc
PHPDocs and code style fixed
2017-04-26 09:26:01 +03:00
7db93fc33d
Refactored solution to be contained within ActiveQuery instead of helper
2017-04-25 23:24:27 +03:00
e26bc50441
Fixed wrong variable returned.
2017-03-31 10:27:52 +02:00
afb93bf743
Apply grouping after loading relations.
2017-03-30 16:01:19 +02:00
13de76714b
Refactored yii\db\Query::queryScalar()
method
2017-02-23 22:01:48 +02:00
92eee10ae1
Change the name of method getQueryTableName and remove its $query argument ( #12893 )
...
* refactores getQueryTableName:
* replaces the $query argument with a $this implementation
* exposes getQueryTableName to be public instead of private. Fixes #12878
* added unit tests for exposed method
* updated changelog
* - methodname changed to 'getTableNameAndAlias'
- scope back to private
- added @internal tag to emphasize that the method is used purely for the internal workings of this piece of software.
- removed changelog (as the API has not changed)
* update tests
2016-12-08 21:22:18 +01:00
7a3a342127
Fix errors reported by apidoc extension. ( #12986 )
2016-11-13 14:51:21 +01:00
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00