8b50a4942a
Fix @var tags syntax in framework folder ( #20392 )
2025-06-03 19:57:08 +03:00
52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
3c6e66f2b3
Unique and Exist validators docs updated ( #19678 )
...
* Unique and Exist validators docs updated
* Correct the line in unique validator as well
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2022-11-16 08:32:27 +01:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
009961963c
Fix #19407 : Fix yii\validators\UniqueValidator
and yii\validators\ExistValidator
to respect skipOnError
option for target attributes
2022-07-29 09:47:33 +03:00
a87c02c712
Fix more types ( #19333 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
* Null types for Validator
* Several more null types
* One more
* Make AccessRule::$allow always a boolean
It doesn't have any special null handling, so it's safe to default to false
* Validator::$skipOnEmpty is always a boolean
* Catch all throwable from Widget::widget()
* Don't limit $previous args to \Exception
The actual \Exception allows $previous to be any throwable in PHP 7+
* Add Throwable catch block to Instance::get()
* Throwable cleanup
Comment changes only.
- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced
* Yii::setlogger() accepts null
* ArrayHelper::removeValue() can remove any type of value
* Change default $allow value to false
2022-04-03 11:20:21 +02: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
e3028c524d
Fix #18899 : Replace usages of strpos
with strncmp
and remove redundant usage of array_merge
and array_values
2021-09-28 11:06:46 +03:00
385fe13d66
Revert #18102 since renaming is technically problematic ( #18109 )
2020-06-17 13:40:17 +03:00
eb956e9c6b
primary/replica in a definitely non-breaking way ( #18106 )
2020-06-16 11:33:27 +03:00
472600ee3f
Fix #18102 : Use “primary”/“replica” terminology instead of “master”/“slave”
2020-06-14 00:12:10 +03:00
9dcf65e304
Fix #17389 : Fixed UniqueValidator
to work with Active Record having joinWith()
in its find()
2019-07-02 20:50:53 +03:00
b4adada51e
Fixes #16022 : Fix UniqueValidator for PostgreSQL. Checks the uniqueness of keys in jsonb
field
2018-12-05 00:06:51 +03:00
22832b7c49
release version 2.0.14
2018-02-19 00:27:09 +02:00
3c8207f050
seems missing a )
here...
2018-02-18 23:54:14 +08:00
67caf0219a
Check db driver have useMaster or not for calling. ( #15664 )
...
Breaking change in mongodb or another driver.
In checking unique validation in mongodb validator error occurred in calling useMaster but in mongodb this is not exist and this is breaking change in older driver.
2018-02-18 18:40:09 +03:00
63ffae028e
Fixes #14254 : add an option to specify whether validator is forced to always use master DB for yii\validators\UniqueValidator
and yii\validators\ExistValidator
2018-02-15 02:12:54 +03:00
71c541773f
PHPDoc fix
2018-01-23 13:17:25 +02:00
65f6b59b35
@inheritdoc
notation changed
2018-01-23 13:11:24 +02:00
b44bbd6a13
Fix code issues ( #15435 )
...
* Fix some scrunitizer warnings
* Remove obsolete require
* Fix codestyle
2018-01-01 16:21:37 +03:00
0bec2b462c
Fixes #14484 : Fixed yii\validators\UniqueValidator
for target classes with a default scope
2017-12-18 10:41:13 +03:00
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
2017-10-19 01:54:40 +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
2466d397ae
Fixed yii\validators\ExistValidator
and yii\validators\UniqueValidator
throw exception in case they are set for yii\db\ActiveRecord
with $targetClass
pointing to NOSQL ActiveRecord
2017-07-25 16:17:37 +03:00
d4c15c36d0
Fixes #14304 : Fixed yii\validators\UniqueValidator
and yii\validators\ExistValidator
to skip prefixes in case expressions are used
2017-06-27 00:02:47 +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
921147dca5
Fixes #14161 , #14150 : fixed primary table aliasing (include case manual set alias) in validators
2017-05-16 13:24:49 +03:00
8a087c8537
#14150 : Added {{ and }} to getTablesUsedInFrom() output
2017-05-12 15:55:37 +03:00
96382454b1
Additional refactoring as suggested by @dynasource
2017-05-10 13:08:29 +03:00
9828bde1db
Added escaping for column name
2017-05-10 12:04:54 +03:00
5c72047426
Fixed ambiguous column name in SELECT in UniqueValidator
...
fixes #14042
2017-05-10 12:02:48 +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
cf7f358093
Removed obsolete import
2017-04-25 23:30:53 +03:00
7db93fc33d
Refactored solution to be contained within ActiveQuery instead of helper
2017-04-25 23:24:27 +03:00
8474927a55
Fixed ambiguous error sql while using unique validator
2017-04-25 23:24:12 +03:00
3c1f3e20cf
Fixes #13704 : Fixed yii\validators\UniqueValidator
to prefix attribute name with model's database table name
2017-03-16 17:42:31 +03:00
6397791513
Fixed whitespaces to match code style [skip ci]
2017-03-14 09:42:13 +03:00
36521c50e0
instructions on signing tag on release repo
2017-02-02 14:35:16 +01:00
c19b2f7dc8
release version 2.0.11
2017-02-01 17:46:29 +01:00
1eec5c17bc
make UniqueValidator compatible with ActiveRecordInterface again
...
fixes #13485
2017-02-01 13:30:19 +01:00
0df8020dd0
Fix for #13485
2017-02-01 13:20:32 +01:00
d39c491022
Fix BC breaking #13475 ( #13478 )
2017-01-31 11:56:46 +03:00
240bca515a
Use low-level query in UniqueValidator ( #13461 )
...
Fixes #13453 , relates to #13098
2017-01-28 18:38:06 +03:00
bede9feba5
Fixes #13453 : Reverted #10896 commit 729ddc5b76e8159d051e9c5783f5534eeb212efb
...
It was causing side effects: https://github.com/yiisoft/yii2/issues/13453
2017-01-28 01:16:14 +03:00
b82caa97e8
Fixes #7820 : Add or
relation for targetAttribute
in yii\validators\UniqueValidator
2017-01-22 19:45:18 +03:00
bfba0aa711
Refactor validateAttribute method in UniqueValidator ( #13202 )
...
* Refactor validateAttribute method in UniqueValidator
Extract prepareParams and prepareQuery from validateAttribute,
so they can be tested separately.
* Added issue number to changelog
* Eliminated unneeded variable
* Renamed methods and parameters, update PHPDocs
2016-12-15 12:23:16 +01:00
729ddc5b76
Select only primary keys in UniqueValidator ( #10896 ) ( #13098 )
...
fixes #10896
2016-12-01 10:45:58 +01:00