Carsten Brandt
|
0559a95db9
|
Fixed ambiguous column error in `BaseActiveRecord::refresh()`
when the query adds a JOIN by default
fixes #13757
|
7 years ago |
Robert Korulczyk
|
fe8a0a6a2e
|
Enable `no_useless_else` rule in php-cs-fixer (#14420)
|
7 years ago |
Carsten Brandt
|
a7d2aaffd5
|
mention usage of deleteAll() in AR unlinkAll
issue #14410
|
7 years ago |
Robert Korulczyk
|
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.
|
7 years ago |
Carsten Brandt
|
be658f82bf
|
release version 2.0.12
|
7 years ago |
leandrogehlen
|
17a1d91e4a
|
Allows override query relation in descendant class
fixes #13441
close #13642
|
7 years ago |
viwek
|
49ab20139c
|
Inserted missing * on line 972 (#14224) [skip ci]
|
7 years ago |
Alexander Makarov
|
8c30bab105
|
Eliminated else branches in beforeSave() and beforeDelete() phpdoc examples [skip ci]
|
8 years ago |
Carsten Brandt
|
0fdd5b81dd
|
Revert "update phpdoc annotation in BaseActiveRecord"
This reverts commit 0f78008bc7 .
https://github.com/yiisoft/yii2-gii/pull/267#issuecomment-293965278
|
8 years ago |
Carsten Brandt
|
0f78008bc7
|
update phpdoc annotation in BaseActiveRecord
https://github.com/yiisoft/yii2-gii/pull/267#issuecomment-293958830
|
8 years ago |
Klimov Paul
|
319e27c45c
|
Fixed `yii\db\BaseActiveRecord::deleteAll()` changes method signature declared by `yii\db\ActiveRecordInterface::deleteAll()`
|
8 years ago |
SilverFire - Dmitry Naumenko
|
88f2348ed5
|
Fixed `ActiveRecord::unlinkAll()` to respect `onCondition()`
Closes #12213
|
8 years ago |
Robert Korulczyk
|
7a3a342127
|
Fix errors reported by apidoc extension. (#12986)
|
8 years ago |
Alexander Makarov
|
d28009843e
|
#12950: Mentioned AttributeTypecastBehavior in AR afterSave() docs
|
8 years ago |
Robert Korulczyk
|
4aa935e69e
|
Fixes #12055: Changed `boolean` to `bool` and `integer` to `int` in phpdoc
|
8 years ago |
Carsten Brandt
|
1433d8a017
|
added example for relation name to AR phpdoc
fixes #12802
|
8 years ago |
Carsten Brandt
|
f006db9b2b
|
update docs of AR::update()
fixes #12461
|
8 years ago |
Klimov Paul
|
ea03f56d42
|
`BaseActiveRecord` methods `canGetProperty()` and `canSetProperty()` improved to handle attribute list fetching failure.
|
8 years ago |
Klimov Paul
|
75439d367d
|
Fixed `canGetProperty()` and `canSetProperty()` returns `false` for `yii\db\BaseActiveRecord` attributes
|
8 years ago |
Klimov Paul
|
4f7b1b0817
|
Fixed `yii\db\BaseActiveRecord::refresh()` may set incorrect `oldAttributes` values at some cases
|
8 years ago |
SilverFire - Dmitry Naumenko
|
1e1723a741
|
Updated PHPDoc in BaseActiveRecord
Closes #12349
|
8 years ago |
Klimov Paul
|
143f9070af
|
Fixed `yii\db\BaseActiveRecord::updateAttributes()` change `isNewRecord` state for the new model
|
8 years ago |
Angel Guevara
|
6b6fa96319
|
Fix #11252 use strict comparison on hasAttribute()
close #11256
|
8 years ago |
Nikola Kovacs
|
9d327baa8b
|
coding style fixes
|
8 years ago |
raoul
|
60f6ecf063
|
`yii\db\BaseActiveRecord` now triggers event EVENT_AFTER_REFRESH` after a record is refreshed
fixes #9604
close #10867
|
9 years ago |
Ivaylo Ushev
|
5921865459
|
Fixed: #11270 - Error when link record in one to many relation. (#11301)
Fixed: #11270 - Error when link record in one to many relation.
|
9 years ago |
Alexander Makarov
|
48a2df5d52
|
Fixes #11283: `ActiveRecord::unlink()` is not setting FK to `null` before deleting itself anymore
|
9 years ago |
Alexander Makarov
|
5c4e2d4372
|
Removed unnecessary parentheses
|
9 years ago |
Alexander Makarov
|
1f7134634b
|
Use static:: instead of $this for static method calls
|
9 years ago |
SilverFire - Dmitry Naumenko
|
2275156f7e
|
PHPDoc updated
|
9 years ago |
Alexander Makarov
|
8765cae71c
|
Reverted #9656 because of BC break (reverted from commit 4a464afe9b )
|
9 years ago |
Sam Mousa
|
4a464afe9b
|
Fixes #9656: `yii\db\BaseActiveRecord` refactored in order to getting, setting and unsetring attribute values using the same approach
|
9 years ago |
Alexander Makarov
|
1b3770fd21
|
Use === instead of == where possible
|
9 years ago |
Vovan-VE
|
c68b9a486c
|
Fix: Issue #9814: event type EVENT_AFTER_INSERT and EVENT_AFTER_UPDATE
Events `EVENT_AFTER_INSERT` and `EVENT_AFTER_UPDATE` are documented
as `Event`, but infact they are `AfterSaveEvent`.
|
9 years ago |
Carsten Brandt
|
229a39dec1
|
Revert "Fixes #9758: phpdoc correction"
This reverts commit 13a2b70a65 .
The docblock is totally valid as it describes the property defined by this getter.
|
9 years ago |
Alexander Makarov
|
13a2b70a65
|
Fixes #9758: phpdoc correction
|
9 years ago |
Carsten Brandt
|
6d9fe671de
|
various code style and whitespace adjustments
|
9 years ago |
Sebastian Chojniak
|
86c2e22a5b
|
class Event is used in docs
|
9 years ago |
Sebastian Chojniak
|
6ee285f321
|
unused imports removed
|
9 years ago |
Alexander Mohorev
|
68c30c1034
|
Replace aliases of functions
|
9 years ago |
Carsten Brandt
|
30f003381d
|
revised AR documentation
fixed some incorrectness in update() and insert() and also fixes #8761
|
9 years ago |
Carsten Brandt
|
f68e970de2
|
link to PHP classes just as we do with normal classes
apidoc can handle this!
|
9 years ago |
Carsten Brandt
|
ec76a3015a
|
use yii\base\Event in BaseAR to fix phpdoc reference
|
9 years ago |
Carsten Brandt
|
0959b5d28e
|
updated docs about dirty attributes
fixes #8619
|
9 years ago |
Klimov Paul
|
467596633d
|
Code optimization
|
9 years ago |
Klimov Paul
|
51a442d6c8
|
Fixed `yii\db\ActiveRecord` does not updates attribute specified at `optimisticLock()` after save
|
9 years ago |
Carsten Brandt
|
cca47b5469
|
ensure primary key string comparison is made identical
this is to avoid cases where string primary keys starting with '0e'.
See http://securityaffairs.co/wordpress/36732/hacking/php-hash-comparison-flaw.html
Other parts of Yii 2, escpecially the security and auth parts, are **not** affected.
|
10 years ago |
Qiang Xue
|
42fd70b2a1
|
exception message fix
|
10 years ago |
Carsten Brandt
|
b0be36668e
|
slight refactoring for #8179
|
10 years ago |
Thiago Talma
|
4970fb1e95
|
if...else
|
10 years ago |