-
Notifications
You must be signed in to change notification settings - Fork 15
IBX-9262: Fixed Relation::Asset not being cleaned up on content deletion #523
New issue
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
base: 4.6
Are you sure you want to change the base?
Conversation
tests/integration/Core/Repository/ContentService/ImageAssetTest.php
Outdated
Show resolved
Hide resolved
* id: int|string, | ||
* version: int|string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any situations in which these values are integers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it strictly depends on database driver.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from missing import.
src/lib/Persistence/Legacy/Content/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
|
||
$assetContent = $this->contentService->loadContentByContentInfo($assetContent->getContentInfo()); | ||
|
||
/** @var \Ibexa\Core\FieldType\ImageAsset\Value $value */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can make an assertion instead.
Co-authored-by: Paweł Niedzielski <[email protected]>
|
Description:
We were missing image asset cleanup when asset content was deleted.
For QA:
Check also if that change did not affect normal relation field type cleanup in any way.
Documentation: