Skip to content

Commit

Permalink
Merge pull request #75 from floh1111/client-generated-id-fix
Browse files Browse the repository at this point in the history
When creating a new resource that has a client generated id we should…
  • Loading branch information
nilportugues authored Jun 29, 2016
2 parents 177c14d + 060ba3c commit 14631da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected function createResourceCallable()
}

if (!empty($data['id'])) {
$model->setAttribute($model->getKeyName(), $values['id']);
$model->setAttribute($model->getKeyName(), $data['id']);
}

try {
Expand Down

0 comments on commit 14631da

Please sign in to comment.