Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Fix issue with getting validation rules when updating not from specia…
Browse files Browse the repository at this point in the history
…l method
  • Loading branch information
Eugene Mosunov committed Mar 13, 2019
1 parent 0f04b3a commit 0fca0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/EntityService.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function update(Model $model, array $modelParams): Model
*/
protected function getValidationRulesForAttributes(array $modelParams, array $rules = []): array
{
$modelRules = empty($rules) ? $this->repository->getModelValidationRules() : $rules;
$modelRules = empty($rules) ? $this->getValidationRules() : $rules;
return array_intersect_key($modelRules, $modelParams);
}

Expand Down

0 comments on commit 0fca0d7

Please sign in to comment.