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
84c55b468a
[minor] SCA ( #16464 )
...
* Php Inspections (EA Ultimate): new findings
* Php Inspections (EA Ultimate): dealing with older PHP versions compatibility
2018-07-01 01:04:48 +03:00
1945dc69c7
Fixes #9133 : Added yii\behaviors\OptimisticLockBehavior
2018-05-12 14:43:13 +03:00
84cb255aab
Fixes #16245 : Fixed __isset() in BaseActiveRecord not catching errors
2018-05-11 11:04:00 +03:00
56a3d21c24
Minor refactoring of BaseActiveRecord::populateRelation() ( #16161 )
2018-04-26 19:09:26 +03:00
2a3428c9e9
Fixes #15875 : afterSave for new models flushes unsaved data
2018-04-24 19:40:21 +03:00
a38302fdfd
improved filtering condition on yii\db\ActiveRecord
2018-03-20 11:42:28 +01:00
5f75916cde
Wording adjustments and doc enhancements [skip ci]
2018-03-20 11:20:56 +01:00
b37f361ad7
Fixed possible SQL injection through ActiveRecord::findOne()
2018-03-20 11:20:56 +01:00
ef9600234e
Fix magic getter for ActiveRecord ( #15696 )
2018-02-20 20:10:44 +05:00
74dc1cdc30
Fixes #13618 : Active record now resets related models after corresponding attributes updates
...
Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
2018-02-12 02:26:49 +03:00
e6f5c46cdc
Fixes #15633 : Deprecate some things going away/changing in 2.1
...
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
65f6b59b35
@inheritdoc notation changed
2018-01-23 13:11:24 +02:00
04891af00a
Removed confusing comment about event triggering from BaseActiveRecord::init() ( #14303 ) [skip ci]
2017-12-19 21:50:44 +03:00
4c61d96786
Corrected return type of BaseActiveRecord::findOne ( #14798 )
2017-09-11 22:31:00 +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
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
0559a95db9
Fixed ambiguous column error in BaseActiveRecord::refresh()
...
when the query adds a JOIN by default
fixes #13757
2017-07-11 11:47:35 +02:00
fe8a0a6a2e
Enable no_useless_else rule in php-cs-fixer ( #14420 )
2017-07-10 11:26:21 +03:00
a7d2aaffd5
mention usage of deleteAll() in AR unlinkAll
...
issue #14410
2017-07-09 00:39:22 +02: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
17a1d91e4a
Allows override query relation in descendant class
...
fixes #13441
close #13642
2017-06-01 11:53:43 +02:00
49ab20139c
Inserted missing * on line 972 ( #14224 ) [skip ci]
2017-05-28 17:30:36 +05:00
8c30bab105
Eliminated else branches in beforeSave() and beforeDelete() phpdoc examples [skip ci]
2017-05-04 19:03:31 +03:00
0fdd5b81dd
Revert "update phpdoc annotation in BaseActiveRecord"
...
This reverts commit 0f78008bc71af6aca45152452f9f5017e7361e6a.
https://github.com/yiisoft/yii2-gii/pull/267#issuecomment-293965278
2017-04-13 19:21:40 +02:00
0f78008bc7
update phpdoc annotation in BaseActiveRecord
...
https://github.com/yiisoft/yii2-gii/pull/267#issuecomment-293958830
2017-04-13 18:56:11 +02:00
319e27c45c
Fixed yii\db\BaseActiveRecord::deleteAll() changes method signature declared by yii\db\ActiveRecordInterface::deleteAll()
2017-02-09 12:16:04 +02:00
88f2348ed5
Fixed ActiveRecord::unlinkAll() to respect onCondition()
...
Closes #12213
2016-12-14 22:51:21 +02:00
7a3a342127
Fix errors reported by apidoc extension. ( #12986 )
2016-11-13 14:51:21 +01:00
d28009843e
#12950 : Mentioned AttributeTypecastBehavior in AR afterSave() docs
2016-11-10 03:12:47 +03:00
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
1433d8a017
added example for relation name to AR phpdoc
...
fixes #12802
2016-10-24 02:16:54 +02:00
f006db9b2b
update docs of AR::update()
...
fixes #12461
2016-09-05 11:57:08 +02:00
ea03f56d42
BaseActiveRecord methods canGetProperty() and canSetProperty() improved to handle attribute list fetching failure.
2016-09-05 12:22:09 +03:00
75439d367d
Fixed canGetProperty() and canSetProperty() returns false for yii\db\BaseActiveRecord attributes
2016-08-30 17:39:23 +03:00
4f7b1b0817
Fixed yii\db\BaseActiveRecord::refresh() may set incorrect oldAttributes values at some cases
2016-08-30 14:42:46 +03:00
1e1723a741
Updated PHPDoc in BaseActiveRecord
...
Closes #12349
2016-08-26 22:11:35 +03:00
143f9070af
Fixed yii\db\BaseActiveRecord::updateAttributes() change isNewRecord state for the new model
2016-08-12 11:43:31 +03:00
6b6fa96319
Fix #11252 use strict comparison on hasAttribute()
...
close #11256
2016-07-06 14:48:38 +02:00
9d327baa8b
coding style fixes
2016-05-26 11:19:32 +02:00
60f6ecf063
yii\db\BaseActiveRecord now triggers event EVENT_AFTER_REFRESH` after a record is refreshed
...
fixes #9604
close #10867
2016-04-22 17:14:41 +02:00
5921865459
Fixed : #11270 - Error when link record in one to many relation. ( #11301 )
...
Fixed : #11270 - Error when link record in one to many relation.
2016-04-08 10:36:38 +03:00
48a2df5d52
Fixes #11283 : ActiveRecord::unlink() is not setting FK to null before deleting itself anymore
2016-04-06 12:41:53 +03:00
5c4e2d4372
Removed unnecessary parentheses
2016-02-16 14:08:43 +03:00
1f7134634b
Use static:: instead of $this for static method calls
2016-02-16 14:06:23 +03:00
2275156f7e
PHPDoc updated
2015-12-15 19:14:55 +02:00
8765cae71c
Reverted #9656 because of BC break (reverted from commit 4a464afe9b4103d96c61f77ea6e093e45ee837c9)
2015-11-25 06:41:55 +03:00
4a464afe9b
Fixes #9656 : yii\db\BaseActiveRecord refactored in order to getting, setting and unsetring attribute values using the same approach
2015-11-20 15:45:12 +03:00