Well, we can mark this one solved. Daniel's solution seemed simple and
elegant but I couldn't really figure it out with my cuurent level of
knowledge. Then I read Richtermeister's post again and fathomed that
all I'd have to do is add the timestampable behavior on my Doctrine
class and then do this in my action:

$lastUpdate = $this->supplier->getUpdatedAt();
$form->save();
$newUpdate = $this->supplier->getUpdatedAt();

if ($lastUpdate != $newUpdate) return 'changes';
else return 'nochanges';

Works like a charm and it's simple enough for my needs.

Thanks all for the inspiration.

Burt.


-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to