1
0
Fork 0
mirror of synced 2024-06-30 04:00:34 +12:00

Updated latest changes

This commit is contained in:
Eldad Fux 2020-10-30 00:44:01 +02:00
parent 752c6b4ecb
commit 50d404e7a3
3 changed files with 11 additions and 12 deletions

View file

@ -238,8 +238,7 @@ class Response extends SwooleResponse
if (!$document->isSet($key)) { if (!$document->isSet($key)) {
if (!is_null($rule['default'])) { if (!is_null($rule['default'])) {
$document->setAttribute($key, $rule['default']); $document->setAttribute($key, $rule['default']);
} } else {
else {
throw new Exception('Model '.$model->getName().' is missing response key: '.$key); throw new Exception('Model '.$model->getName().' is missing response key: '.$key);
} }
} }