There's a getModifiedFields() method on propel objects as well.. no need for looping.
Daniel On Oct 12, 2:10 am, Tomasz <tomek.ignat...@gmail.com> wrote: > It is not the best option but it will do the job. Thank you :) > > I can loop all fields and put into array those which are modified :) > > On 12 Paź, 10:57, Sid Bachtiar <sid.bacht...@gmail.com> wrote: > > > The only way that I know is to detect before you save. For example: > > > class Ninja extends BaseNinja > > { > > public function save($con=null) > > { > > $age_modified = $this->isColumnModified(NinjaPeer::AGE); > > $gender_modified = $this->isColumnModified(NinjaPeer::GENDER); > > > // do something with the above flags > > > return parent::save($con); > > } > > > } > > > On Mon, Oct 12, 2009 at 9:53 PM, Tomasz Ignatiuk > > > <tomek.ignat...@gmail.com> wrote: > > > > Does anyone know if there is in Symfony a function that returns > > > updated fileds after saving a form? Or how to do it? I use Propel. In > > > Propel doUpdate returns no of changed row, but not field names. > > > -- > > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---