This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Setting Uploaded file of OneupUploaderBundle to form entity

Discuss Symfony 2 bundles here

Setting Uploaded file of OneupUploaderBundle to form entity

by 4r1y4n » Sat Nov 15, 2014 11:49 pm

Hi
I'm using OneupUploaderBundle for file uploading.
It uploads file and I can create a doctrine entity from uploaded files.
But after upload how can I set this files to main entity of my form?
for example I have a Post entity and OneupUploaderBundle created some File entities.
Now I want to:
    1. Associate File entities to Post entity's OneToMany field
    2. Delete those File entities if user never submit the Post form (delete orphan File entities)
How can I achieve this?
4r1y4n
Junior Member
 
Posts: 3
Joined: Sun Dec 29, 2013 4:46 pm