AFAIK when you do a save() on a propel object its just does an update on all fields even if you only changed one, although I stand to be corrected on this.
Eg: $propel_obj = TablePeer::retrieveByPk($primary_key); $propel_obj->setField1('newValue'); $propel_obj->setField2('newValue2'); $propel_obj->save(); This results in a query like: UPDATE table (field1, field2, field3) VALUES ('newValue', 'newValue2', 'sameValue') WHERE id = $primary_key; Like I said this is a guess on my part. On Wed, Apr 21, 2010 at 12:09 PM, Tamas Amon <sajta...@gmail.com> wrote: > I like to write it to a log file, but only the changed fields. I use > propel, but maybe this function help for me? Thanks. > > On 19 April 2010 08:49, Tom Ptacnik <to...@tomor.cz> wrote: >> Where do you need to check this? >> >> If you are using doctrine, than you can do use in model $this- >>>getModified(true/false) method >> >> >> >> On 18 dub, 12:58, Tamas Amon <sajta...@gmail.com> wrote: >>> Hello, >>> >>> Something s misunderstood? >>> >>> On 15 April 2010 15:02, Tamas Amon <sajta...@gmail.com> wrote: >>> >>> > Hello, >>> >>> > I like to know if a form saved by update, which field is changed. How >>> > can I know this? >>> >>> > Thanks >>> >>> > -- >>> > Ámon Tamás >>> >>> -- >>> Ámon Tamás >>> >>> -- >>> 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 >>> 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 >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en >> > > > > -- > Ámon Tamás > > -- > 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 > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- 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