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
Image product never delete ? #4294
Comments
Hello @lpxavi Here is the @juliensnz answer
|
@lpxavi See this part of orm mapping # ProductValue.orm.yml
Pim\Bundle\CatalogBundle\Model\ProductValue:
type: entity
table: pim_catalog_product_value
changeTrackingPolicy: DEFERRED_EXPLICIT
# ......
manyToOne:
# ........
media:
targetEntity: Akeneo\Component\FileStorage\Model\FileInfoInterface
cascade:
- remove
- persist
- refresh
- detach
joinColumns:
media_id:
referencedColumnName: id
onDelete: 'SET NULL' # this line |
I confirm this information. It's too dangerous remove a file from the file system. You can create a command to remove unused files if needed. I also add this command idea to our backlog (reference IM-491) Regards, Julien |
Hi @juliensnz Out of curiosity, was IM-491 ever implemented in a newer version of Akeneo? I'm having a task to cleanup images no longer associated to products on an Akeneo CE 2.3 installation and I'm wondering if this feature ever made it in this version or a newer version, because I can't seem to find it at first sight. Thanks! |
Hi,
I use Akeneo v1.4.22.
I have noticed that product's images are never delete. Neither when delete image of a product nor when we execute a mass product import with image.
It's a bug or it's good ?
Is there a way to delete all image not link at a product ?
Thank's you
The text was updated successfully, but these errors were encountered: