ardent icon indicating copy to clipboard operation
ardent copied to clipboard

Table suffix on unique validation rules

Open rspahni opened this issue 11 years ago • 0 comments

Ardent does not need the table suffix on unique validation rules, which is cool. However, while validateUniques and updateUniques methods invoke buildUniqueExclusionRules for that matter, the regular save method does not. Thus, Eloquent's Validator.php - namely its validateUnique method - throws an exception when it is called from Ardent.php line 522 via the passes method. If I add back the table suffix to the unique rules, the save method works again.

image

rspahni avatar Feb 25 '14 06:02 rspahni