octicon-git-branch(16/) Commit Graph

70 Commits

Author SHA1 Message Date
Robert Korulczyk
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 octicon-file-diff(16/) octicon-file-code(16/)
Robert Korulczyk
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
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 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
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 octicon-file-diff(16/) octicon-file-code(16/)
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.
2017-06-12 12:25:45 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
bscheshirwork
921147dca5 Fixes #14161, #14150: fixed primary table aliasing (include case manual set alias) in validators 2017-05-16 13:24:49 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
8a087c8537 #14150: Added {{ and }} to getTablesUsedInFrom() output 2017-05-12 15:55:37 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
96382454b1 Additional refactoring as suggested by @dynasource 2017-05-10 13:08:29 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
9828bde1db Added escaping for column name 2017-05-10 12:04:54 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
5c72047426 Fixed ambiguous column name in SELECT in UniqueValidator
fixes #14042
2017-05-10 12:02:48 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
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 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
37fc6c5afb Alternative names 2017-04-26 15:36:36 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
cf7f358093 Removed obsolete import 2017-04-25 23:30:53 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
7db93fc33d Refactored solution to be contained within ActiveQuery instead of helper 2017-04-25 23:24:27 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
vladis84
8474927a55 Fixed ambiguous error sql while using unique validator 2017-04-25 23:24:12 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
vladis84
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 octicon-file-diff(16/) octicon-file-code(16/)
gagatust
6397791513 Fixed whitespaces to match code style [skip ci] 2017-03-14 09:42:13 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
36521c50e0 instructions on signing tag on release repo 2017-02-02 14:35:16 +01:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
c19b2f7dc8 release version 2.0.11 2017-02-01 17:46:29 +01:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
1eec5c17bc make UniqueValidator compatible with ActiveRecordInterface again
fixes #13485
2017-02-01 13:30:19 +01:00 octicon-file-diff(16/) octicon-file-code(16/)
Elvira Sheina
0df8020dd0 Fix for #13485 2017-02-01 13:20:32 +01:00 octicon-file-diff(16/) octicon-file-code(16/)
Elvira Sheina
d39c491022 Fix BC breaking #13475 (#13478) 2017-01-31 11:56:46 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Elvira Sheina
240bca515a Use low-level query in UniqueValidator (#13461)
Fixes #13453, relates to #13098
2017-01-28 18:38:06 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
bede9feba5 Fixes #13453: Reverted #10896 commit 729ddc5b76
It was causing side effects: https://github.com/yiisoft/yii2/issues/13453
2017-01-28 01:16:14 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Elvira Sheina
b82caa97e8 Fixes #7820: Add or relation for targetAttribute in yii\validators\UniqueValidator 2017-01-22 19:45:18 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Elvira Sheina
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 octicon-file-diff(16/) octicon-file-code(16/)
Elvira Sheina
729ddc5b76 Select only primary keys in UniqueValidator (#10896) (#13098)
fixes #10896
2016-12-01 10:45:58 +01:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
b8b3aeeb00 update deprecated phpdoc messages 2016-11-22 16:03:28 +01:00 octicon-file-diff(16/) octicon-file-code(16/)
DrDeath72
c42ef605db Fixes #12554: Fixed yii\validators\UniqueValidator error of getting first model indexed by field 2016-09-20 22:47:12 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Robert Korulczyk
2f981c5a70 Fix BC break for UniqueValidator custom message when validating multiple attributes 2016-08-24 22:59:58 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
ee92cfa7ba release version 2.0.9 2016-07-11 15:36:42 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
d2dd232b6f message improvement and test for #11323 2016-07-06 14:27:50 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
PowerGamer1
e0ace833d0 Added Error message for combined attributes to unique validator
- error message `$comboNotUnique` to include model attribute labels instead of attribute names.
- Fixes #11322

close #11323
2016-07-06 14:09:56 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
githubjeka
2e7014fd72 Fix bug #10638 2016-01-21 20:22:51 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
SilverFire - Dmitry Naumenko
a1ff095f91 UniqueValidator - fixed syntax warning: static call on object 2016-01-19 00:18:58 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
githubjeka
f0532b8818 Fix https://github.com/yiisoft/yii2/pull/10263 2015-11-27 00:07:20 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Mohorev
68c30c1034 Replace aliases of functions 2015-06-29 22:59:22 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Nikola Kovacs
f11bdfa2a7 Grammar fix: followings -> following 2015-04-21 15:08:16 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
d13d274d05 renamed $object to $model 2014-10-31 14:56:59 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
b9b6fbc94b Fixes #5039: UniqueValidator and ExistValidator did not respect query conditions added by default scope 2014-09-15 21:19:55 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00 octicon-file-diff(16/) octicon-file-code(16/)
Chong Freeman
c6e8f66e1b Update UniqueValidator.php 2014-05-19 15:52:54 +08:00 octicon-file-diff(16/) octicon-file-code(16/)
Алексей
f2d5ddab4f Update UniqueValidator.php 2014-04-14 11:40:01 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
31c24ec92b Fixes #2003: Added filter property to ExistValidator and UniqueValidator to support adding additional filtering conditions 2014-01-16 11:30:48 -05:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
Zander Baldwin
4be9e195c2 Add Newlines
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
bcc833200a simplified Yii::import(). 2013-04-11 17:40:23 -04:00 octicon-file-diff(16/) octicon-file-code(16/)