We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After updating to current master version, I get a lot of version conflicts:
Object 86cf4956-c4b4-4822-9400-4c9faf890e78 has a different version than expected. Expected: 2 - Actual: 3
Workaround (credit by @bestit-el-bardan): Use detachDeferred before flush.
detachDeferred
$this->odm->detachDeferred($productType); $this->odm->flush();
The text was updated successfully, but these errors were encountered:
To expand on this, there seems to be an issue in https://github.com/bestit/commercetools-odm/blob/master/src/UnitOfWork.php#L1108 It flushes multiple times, even if the first run was successful and it shouldn't actually flush a second time.
The workaround works due to the logic in the PersistResponseHandler https://github.com/bestit/commercetools-odm/blob/master/src/UnitOfWork/ResponseHandlers/PersistResponseHandler.php#L75 so it gets detached and the "isObjectManaged" check returns false.
This seems like a bug though as it should work without manually calling detachDeferred
Sorry, something went wrong.
sorry, dont understand this topic.
b3nl
No branches or pull requests
After updating to current master version, I get a lot of version conflicts:
Workaround (credit by @bestit-el-bardan):
Use
detachDeferred
before flush.The text was updated successfully, but these errors were encountered: