Every do*() method is kind of hook which you can overwrite without much impact on other parts form framework. Of course you have to know what are you doing, but this is safest way to extend/add your own logic.
Read this.<http://giorgiosironi.blogspot.com/2010/04/practical-php-patterns-template-method.html> On Sat, Apr 17, 2010 at 1:46 AM, rooster (Russ) <russmon...@gmail.com> wrote: > A quick check of the source code will tell you all you need to know... > > save() is a wrapper function, that runs doSave() inside a transaction > > doSave() first calls updateObject() then calls save() on the object > itself. > > updateObject() is a method called just before the object is actually > saved, it's somewhere you can throw in some last minute object > manipulation before it is saved to the db. > > http://trac.symfony-project.org/browser/branches/1.4/lib/form/addon/sfFormObject.class.php > > Russ > > On Apr 16, 5:17 pm, WallTearer <walltea...@gmail.com> wrote: >> Hello group. >> >> I'm reading symfony docs, but can't get what is the difference between >> sfFormDoctrine methods: >> doSave() >> save() >> updateObject() >> >> What is the order of their execution? >> >> Thanks a lot >> >> -- >> 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 athttp:// 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<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