Closed klimov-paul closed 5 years ago
Configure persistent repository with the item, which id does not match its key, set new value to this item and invoke synchronize():
id
key
synchronize()
$persistentRepository = new PersistentRepository(/* ... */); $persistentRepository->setItems([ 'custom.id' => [ 'id' => 'custom_id', ], ]); $persistentRepository->set('custom.id', 'new value') $persistentRepository->synchronize();
New value is saved inside the persistent storage.
New value is ignored.
Resolved by commit bf7e996aa4f3abe095b0328e4ee7babbf424cb95
What steps will reproduce the problem?
Configure persistent repository with the item, which
id
does not match itskey
, set new value to this item and invokesynchronize()
:What is the expected result?
New value is saved inside the persistent storage.
What do you get instead?
New value is ignored.
Additional info