[symfony-users] Re: Override save() of embedded forms

2009-02-11 Thread Jonathan Wage
I talked to him about it now he understands the real issue here.

http://trac.symfony-project.org/ticket/5867

Can you help me and close the other tickets as duplicates? I want to use the
ticket I created to handle the issue since it explains the issue the
clearest.

Thanks, Jon

On Tue, Feb 10, 2009 at 4:23 PM, Jonathan Wage jonw...@gmail.com wrote:

 I haven't been able to talk to him about it yet. I will report back here as
 soon as I have discussed it with him.

 Thanks, Jon


 On Tue, Feb 10, 2009 at 2:10 PM, Paolo Mainardi 
 paolomaina...@gmail.comwrote:



 On Mon, Feb 9, 2009 at 8:05 PM, Jonathan Wage jonw...@gmail.com wrote:

 We have a few tickets existing for it. I'll talk with Fabien when I see
 him online and see what he thinks after I explain it to him. We'll re-open
 one of the tickets if he agrees.

 Thanks, Jon


 Hi Jon,

 Do you have some news on this issue ?

 Thank you very much,

 Paolo


 --
 Paolo Mainardi

 Vice Presidente Assoc.ILDN (http://www.ildn.net)
 Blog: http://www.paolomainardi.com

 



 --
 Jonathan H. Wage
 Open Source Software Developer  Evangelist
 http://www.jwage.com
 http://www.doctrine-project.org
 http://www.symfony-project.org




-- 
Jonathan H. Wage
Open Source Software Developer  Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[symfony-users] Re: Override save() of embedded forms

2009-02-10 Thread Paolo Mainardi
On Mon, Feb 9, 2009 at 8:05 PM, Jonathan Wage jonw...@gmail.com wrote:

 We have a few tickets existing for it. I'll talk with Fabien when I see him
 online and see what he thinks after I explain it to him. We'll re-open one
 of the tickets if he agrees.

 Thanks, Jon


Hi Jon,

Do you have some news on this issue ?

Thank you very much,

Paolo


-- 
Paolo Mainardi

Vice Presidente Assoc.ILDN (http://www.ildn.net)
Blog: http://www.paolomainardi.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
-~--~~~~--~~--~--~---



[symfony-users] Re: Override save() of embedded forms

2009-02-10 Thread Jonathan Wage
I haven't been able to talk to him about it yet. I will report back here as
soon as I have discussed it with him.

Thanks, Jon

On Tue, Feb 10, 2009 at 2:10 PM, Paolo Mainardi paolomaina...@gmail.comwrote:



 On Mon, Feb 9, 2009 at 8:05 PM, Jonathan Wage jonw...@gmail.com wrote:

 We have a few tickets existing for it. I'll talk with Fabien when I see
 him online and see what he thinks after I explain it to him. We'll re-open
 one of the tickets if he agrees.

 Thanks, Jon


 Hi Jon,

 Do you have some news on this issue ?

 Thank you very much,

 Paolo


 --
 Paolo Mainardi

 Vice Presidente Assoc.ILDN (http://www.ildn.net)
 Blog: http://www.paolomainardi.com

 



-- 
Jonathan H. Wage
Open Source Software Developer  Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[symfony-users] Re: Override save() of embedded forms

2009-02-09 Thread Paolo Mainardi



On Feb 2, 8:37 pm, Kris Wallsmith kris.wallsm...@symfony-project.com
wrote:
 Hi Michael,

 I believe the -updateObject() method is called on embedded forms. You  
 might also use a validator or post validator to handle this logic.

 --

But, howto handle M-M (admin generated) relationship saving without
call the doSave() on embedded forms ? This is a big issue, without a
solution.

See here:
http://groups.google.com/group/symfony-devs/browse_thread/thread/d4f5679d35ebfb41?hl=en
http://trac.symfony-project.org/ticket/5445
http://trac.symfony-project.org/ticket/4850

Using the updateObject() it's impossible save correctly the
relationship because the main embedded form it's not save at this
stage, so we don't have the ids of we need.

Yes we can save nested forms automatically with admin generator, but
we can't save linked M-M relationship, without patching the core.

Someone have a solution for this ?

Thank you very much :)
Paolo


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[symfony-users] Re: Override save() of embedded forms

2009-02-02 Thread Kris Wallsmith
Hi Michael,

I believe the -updateObject() method is called on embedded forms. You  
might also use a validator or post validator to handle this logic.

--

Kris Wallsmith | Community Manager
kris.wallsm...@symfony-project.com
Portland, Oregon USA

http://twitter.com/kriswallsmith

On Jan 28, 2009, at 10:48 AM, Michael Smith wrote:


 I have an embedded sfFormDoctrine which I was trying to override the
 save method so that if key fields are blank then the object isn't
 saved to the db but it appears that saveEmbeddedForms() at line 396
 saves the object of embeded forms directly without calling the
 embedded form's save method. Is there a way around this?

 Thanks,
 Michael
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---