Skip to content

Commit

Permalink
Force id to be string
Browse files Browse the repository at this point in the history
  • Loading branch information
discordier committed Mar 6, 2018
1 parent 1b3df30 commit 802604b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MetaModels/DataAccess/ItemPersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private function createNewItem(IItem $item)
->set($data)
->execute()
->insertId;
$item->set('id', $itemId);
$item->set('id', (string) $itemId);

// Set the variant group equal to the id.
if ($isNewBaseItem) {
Expand Down

0 comments on commit 802604b

Please sign in to comment.