How did you do with this approach? looping over every embedded form and
calling "doSave" on everyone? could you please post an example of your
approach?


Thanks!



On Wed, Jul 21, 2010 at 10:03 AM, cloui...@gmail.com <cloui...@gmail.com>wrote:

> I had the same problem and override saveEmbeddedForms too, not a
> beautiful solution, but it works.
>
> On 20 juil, 15:05, Gustavo Adrian <comfortablynum...@gmail.com> wrote:
> > After a little research on Google for this topic I've found certain
> > posts that talk about situations like this (but not the same) so I
> > thought on posting this.
> >
> > I have a typical relation between two models, Item and Attachment,
> > making a One-to-Many relationship. On my Attachment model I tried to
> > encapsulate the generation of Thumbnails and Cropping functionalities.
> > This is where the problem begins. I have a form for my Item and I
> > embedded the Attachment relation.
> >
> > Everything works fine except that each Attachment is saved twice. This
> > is a real problem to me because it generate thumbnails twice and crops
> > the image twice too! I know that I could set a "flag" or something to
> > just crop only once but.. is there a better solution to this? Maybe
> > overriding the saveEmbeddedForms of the main Form? Which is the way
> > commonly followed?
> >
> > Thanks!
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to