Re: [symfony-users] On $form->save() and knowing if anything has changed

2010-11-12 Thread Gareth McCumskey
if (serialize($oldstate) != serialize($newstate)) Once converted to a string the differences are a little more obvious perhaps On Fri, Nov 12, 2010 at 3:34 AM, Burt Crépeault wrote: > Hi folks, > > I'm sure the solution to this is right in my face but I have been looking > (without success,

[symfony-users] On $form->save() and knowing if anything has changed

2010-11-11 Thread Burt Crépeault
Hi folks, I'm sure the solution to this is right in my face but I have been looking (without success, obviously) for a way to know if a doctrine object has changed after its form has been saved. I'd like to display a banner saying "your information was saved" whenever it has indeed changed, but no