ca1c7efa93
Fix #19546 : Reverted #19309
2022-10-26 15:59:25 +04:00
b99f02eccd
Optimize Model::safeAttributes()
( #19547 )
2022-09-16 10:44:07 +02:00
391a741a63
Fix #15557 : Fix empty fields exclusion in safe attributes of yii\base\Model
2022-08-29 10:17:11 +03:00
22614a5b1f
release version 2.0.46
2022-08-19 01:18:45 +03:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
7f244793f5
Rewrite Model::attributes() ( #19309 )
...
* Optimize Model::attributes()
* Update CHANGELOG.md
2022-03-18 08:09:22 +01:00
f3473aa4e8
Fix Model::__clone()
( #19291 )
...
* Fix Model::__clone()
Reset validators and errors after cloning to prevent changing cloned model via inner objects of clone like as InlineValidator
* Update CHANGELOG.md
Co-authored-by: Bizley <pawel@positive.codes>
2022-03-09 08:02:51 +01:00
1271bc419f
Fix #19041 : Fix PHP 8.1 issues
2022-01-14 13:52:01 +03:00
655786b7ed
release version 2.0.44
2021-12-30 10:50:56 +03:00
4c1f872320
Improve ArrayAccess phpdoc in yii\base\Model ( #18992 )
...
Fix parameter name in `offsetSet()`
Fix type of property `$offset` in PhpDoc's
2021-11-01 09:26:54 +03:00
6b8b0a94d9
Fix phpdoc of yii\base\Model
2021-09-18 00:10:23 +03:00
d6632a8367
Fix phpdoc of yii\base\Model
( #18888 )
2021-09-17 23:57:49 +03:00
4479c66522
Fixed phpdoc types
2021-03-12 23:41:48 +03:00
ccb14ff667
release version 2.0.39
2020-11-10 13:58:35 +03:00
0210999748
Fix #18308 : Fixed \yii\base\Model::getErrorSummary()
reverse order
2020-10-02 11:43:30 +03:00
e348c0f460
Fix #18269 : Fix integer safe attribute to work properly in yii\base\Model
2020-09-07 00:33:50 +03:00
69b1966b4a
PHP 7.4 fixes
...
- Fix `Model::activeAttributes()` to access array offset on value of non-string
- Fix incorrect decoding of default binary value for PostgreSQL
- Fix incorrect type-casting of reflection type to string
2019-12-10 15:08:45 +03:00
33fe3476c7
Fixes #16280 : Fixed yii\base\Model::getActiveValidators()
to return correct validators for attribute on scenario
2018-05-21 01:17:34 +05: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
072ef77ea5
Prevent source path disclosure when form is represented by an anonymous class
2017-12-22 12:21:32 +02:00
f11f818b18
Fixes #7988 : Added \yii\helpers\Console::errorSummary()
and \yii\helpers\Json::errorSummary()
2017-12-14 10:59:53 +03:00
713529e042
Fixes #8752 : Allow specify $attributeNames
as a string for yii\base\Model
validate()
method
2017-12-13 23:00:36 +03:00
22d453faac
Fixes #14134 : Fixed multiple validateAttribute()
calls when scenarios()
returns duplicate attributes
2017-10-07 19:40:06 +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
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
950e895fe0
Fix phpDocumentor annotations ( #13905 ) [skip ci]
2017-04-02 21:49:09 +03:00
2de18cf9a5
Fixes #13087 : Fixed getting active validators for safe attribute
2017-02-22 17:06:19 +03:00
4e9d903fed
Fixes #11404 : yii\base\Model::loadMultiple()
returns true even if yii\base\Model::load()
returns false
2017-02-15 01:33:23 +03:00
954c771fdb
Code cleanup ( #13113 )
...
* Simplified code branching, named variable better
* More simple code cleanup
* More consistent line breaks before return statemetns
2016-12-03 00:15:53 +03:00
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
2016-11-04 18:55:14 +03:00
e8c16a09fa
Fixed some typos ( #12847 )
2016-10-26 14:02:38 +03:00
8de6a5117c
Fixed yii\base\Model::offsetExists()
throws an exception on un-existing field
2016-07-28 12:33:16 +03:00
67b5f4ea19
fix for unsafe validator
...
Closes #8145 #8139 #11153
2016-03-22 23:31:16 +02:00
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00
00a8a6270e
revised docs about Model::load()
...
thanks to @tom-- for review.
2015-08-12 16:01:41 +02:00
6d9fe671de
various code style and whitespace adjustments
2015-08-02 00:27:19 +02:00
9012aa66bf
Fixed documentation according to Chg #4911
2015-07-29 12:42:56 +02:00
d3bd7af956
improved documentation of Model::load() return value
...
fixes #8803
close #9216
2015-07-26 02:21:41 +02:00
0c5e4b7105
PSR-2 foreach statement
2015-06-08 23:21:21 +03:00
f68e970de2
link to PHP classes just as we do with normal classes
...
apidoc can handle this!
2015-06-05 21:53:24 +02:00
d5693cfe01
small improvements of Model phpdoc
2015-05-19 01:16:47 +02:00
a0cc77d78d
Update Model.php
...
close #8463
2015-05-19 01:16:30 +02:00
a4f760e798
Fixed yii\base\Model
does not recognize scenario declared by rules using 'except'
2015-04-24 18:03:34 +03:00
851a914f67
phpdoc tweak: Model::scenarios()
2015-04-20 13:08:04 +02:00
85ca8c3712
Added ability to specify hints for model attributes
2015-04-17 14:16:28 +03:00
605c2d9eca
yii\base\Model::load() typo fix
2014-12-30 10:09:48 +03:00
7aae667e28
Fixes #6618 : Added Model::addErrors()
2014-12-26 23:05:59 +03:00