d331b72be6
Merge branch 'master' into unique-validator-fix
2017-05-12 00:45:55 +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
d786b78f25
Helper independent ( #14050 )
...
* Made sure most helpers are independent of Yii::$app
* Made sure most validators are independent of Yii::$app
2017-04-26 09:49:44 +02:00
dee88787fc
compatibility with PHPUnit 6.x added
2017-04-13 14:49:43 +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
d39c491022
Fix BC breaking #13475 ( #13478 )
2017-01-31 11:56:46 +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
22b2a78a0a
Added test for unique validator with empty values
...
close #7007
2016-11-27 02:37:12 +01:00
4fdfbc2739
Add tests for custom message for UniqueValidator
2016-08-24 22:59:58 +02:00
d2dd232b6f
message improvement and test for #11323
2016-07-06 14:27:50 +02:00
86f17c8dad
added tests classes for db related tests
2016-06-20 23:07:07 +02:00
c79ebf49f4
Merge pull request #10639 from githubjeka/test-uniqvalid
...
UniqueValidatorTest: Added test for check the invalid attribute
2016-01-22 03:14:28 +03:00
dabbb81e07
Added test for check the invalid attribute
2016-01-21 21:23:51 +03:00
3ebe092828
Reproduce bug
2016-01-21 19:35:38 +03:00
6eb9830d64
UniqueValidatorTest, CHANGELOG - fixed spelling
2016-01-19 00:17:56 +02:00
a215013f68
Missing phpDoc properties has been added
2015-11-27 19:48:20 +03:00
0fc744598d
optimized imports & add phpDoc
2015-11-27 19:43:29 +03:00
fd6e33ccf3
Semantics of the test has been improved
2015-11-27 19:32:03 +03:00
e5e67ebed5
Add testValidateTargetClass for reproduce the bug.
...
When IDs targetClass & model(not new) is same then unique validator passed
2015-11-27 00:04:49 +03:00
6949992246
Simplified tests directory structure a bit
2015-04-16 12:10:01 +03:00