We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a6a3c6 commit 4d518d2Copy full SHA for 4d518d2
src/Model.php
@@ -826,7 +826,10 @@ protected function setDuplicateEntryError(string $message) : void
826
if ($field === 'PRIMARY') {
827
$field = $this->getPrimaryKey();
828
}
829
- $this->getValidation()->setError($field, 'unique', []);
+ $validation = $this->getValidation();
830
+ $validation->setError($field, 'unique');
831
+ $validation->getDebugCollector()
832
+ ?->setErrorInDebugData($field, $validation->getError($field));
833
834
835
/**
0 commit comments