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 May 30, 2017
1 parent 6f86ca4 commit def1cc7
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 @@ -188,7 +188,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 def1cc7

Please sign in to comment.