BasketSnapshot.php: cast objects to an array...

...when uploading a basket
This commit is contained in:
Thomas Gelf 2019-01-22 16:59:20 +01:00
parent 92c05f49a3
commit 6d46a62085
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class BasketSnapshot extends DbObject
$snapshot = static::create([
'basket_uuid' => $basket->get('uuid')
]);
$snapshot->objects = Json::decode($string);
$snapshot->objects = (array) Json::decode($string);
return $snapshot;
}