Skip to content
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

allow deletion in phpcr_odm_image form type #40

Closed
dbu opened this issue Feb 27, 2013 · 2 comments
Closed

allow deletion in phpcr_odm_image form type #40

dbu opened this issue Feb 27, 2013 · 2 comments

Comments

@dbu
Copy link
Member

dbu commented Feb 27, 2013

follow up of #37 - @rmsint proposed to use a form listener and handling code to handle deleting an image again.

right now the only way to delete an image is by deleting the document containing the image. this follows the idea of http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html - if the image is null (meaning we did not upload a new one) that information is simply ignored.

the proposition is to have a listener to show a checkbox removeImage that is mapped to the document and calls setRemoveImage if checked, having a way to know that the user explicitly wanted to delete the image. rmsint wrote a gist for that: https://gist.github.com/rmsint/ad4d8804e3ae6fae2160

@dbu dbu mentioned this issue Feb 27, 2013
@dbu
Copy link
Member Author

dbu commented Mar 14, 2013

this should only be visible if the image is not determined to be required. see also #43

@dbu
Copy link
Member Author

dbu commented Jun 21, 2013

moved symfony-cmf/media-bundle#9

@dbu dbu closed this as completed Jun 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant