vladis84
3c1f3e20cf
Fixes #13704 : Fixed `yii\validators\UniqueValidator` to prefix attribute name with model's database table name
8 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
Carsten Brandt
36521c50e0
instructions on signing tag on release repo
8 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Carsten Brandt
1eec5c17bc
make UniqueValidator compatible with ActiveRecordInterface again
...
fixes #13485
8 years ago
Elvira Sheina
0df8020dd0
Fix for #13485
8 years ago
Elvira Sheina
d39c491022
Fix BC breaking #13475 ( #13478 )
8 years ago
Elvira Sheina
240bca515a
Use low-level query in UniqueValidator ( #13461 )
...
Fixes #13453 , relates to #13098
8 years ago
Alexander Makarov
bede9feba5
Fixes #13453 : Reverted #10896 commit 729ddc5b76
...
It was causing side effects: https://github.com/yiisoft/yii2/issues/13453
8 years ago
Elvira Sheina
b82caa97e8
Fixes #7820 : Add `or` relation for `targetAttribute` in `yii\validators\UniqueValidator`
8 years ago
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
8 years ago
Elvira Sheina
729ddc5b76
Select only primary keys in UniqueValidator ( #10896 ) ( #13098 )
...
fixes #10896
8 years ago
Carsten Brandt
b8b3aeeb00
update deprecated phpdoc messages
8 years ago
DrDeath72
c42ef605db
Fixes #12554 : Fixed `yii\validators\UniqueValidator` error of getting first model indexed by field
8 years ago
Robert Korulczyk
2f981c5a70
Fix BC break for `UniqueValidator` custom message when validating multiple attributes
8 years ago
Carsten Brandt
ee92cfa7ba
release version 2.0.9
8 years ago
Carsten Brandt
d2dd232b6f
message improvement and test for #11323
8 years ago
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
8 years ago
githubjeka
2e7014fd72
Fix bug #10638
9 years ago
SilverFire - Dmitry Naumenko
a1ff095f91
UniqueValidator - fixed syntax warning: static call on object
9 years ago
githubjeka
f0532b8818
Fix https://github.com/yiisoft/yii2/pull/10263
9 years ago
Alexander Mohorev
68c30c1034
Replace aliases of functions
9 years ago
Nikola Kovacs
f11bdfa2a7
Grammar fix: followings -> following
10 years ago
Qiang Xue
d13d274d05
renamed $object to $model
10 years ago
Qiang Xue
b9b6fbc94b
Fixes #5039 : `UniqueValidator` and `ExistValidator` did not respect query conditions added by default scope
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Chong Freeman
c6e8f66e1b
Update UniqueValidator.php
11 years ago
Алексей
f2d5ddab4f
Update UniqueValidator.php
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Qiang Xue
31c24ec92b
Fixes #2003 : Added `filter` property to `ExistValidator` and `UniqueValidator` to support adding additional filtering conditions
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Carsten Brandt
5dca1257b2
reverted primaryKey of elasticsearch to be array again
...
meet the AR interface requirements.
11 years ago
Carsten Brandt
a7b852fcc3
Changed elasticsearch AR primary key handling
...
now supports mapped primary key when _id is part of source with an
alias.
11 years ago
Qiang Xue
da78b6e16e
doc fix.
11 years ago
Qiang Xue
9649a6727a
Renamed `attributeName` and `className` to `targetAttribute` and `targetClass` for `UniqueValidator` and `ExistValidator`.
...
Refactored UniqueValidator and ExistValidator.
11 years ago
Qiang Xue
252b6c9ef1
Fixes #797 : Added support for validating multiple columns by `UniqueValidator` and `ExistValidator`
11 years ago
Qiang Xue
d620f3152e
refactored BaseActiveRecord::isPrimaryKey()
11 years ago
Qiang Xue
d5f40b42cf
Added ActiveRecordInterface::getOldPrimaryKey().
11 years ago
Qiang Xue
cb4a8c764c
Refactored validators.
11 years ago
Carsten Brandt
d0fc987f0b
fixed test break
11 years ago
Carsten Brandt
83527e85ca
made Model::attributes() non static again
...
- allows to have dynamic definition of attributes depended on the
instance
- there was no real need for it to be static. Places that used it static
have been refactored.
fixes #1318
11 years ago
Carsten Brandt
ed98df5cd8
fixed broken UniqueValidator
11 years ago
Carsten Brandt
cb4504a10f
refactored Model and redis AR to allow drop of RecordSchema
11 years ago
slavcodev
b0b1c27c85
Fix phpDoc var tag format
11 years ago
Alexander Makarov
ffb37f8eab
fixes #1001
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Qiang Xue
ea10868824
Removed Yii::import().
11 years ago
Qiang Xue
f1ce0e165d
Fixes issue #428 Allowing UniqueValidator to be used with non-AR models.
11 years ago