[symfony-users] Re: changed fields

2010-04-21 Thread rafaelgou
In PROPEL you can get with something like thiis with $this- >modifiedColumns in save() method. In the following example, I watch some fields only: // Note the format of column name $watchedColumns = array ( ClientePeer::CLI_IP, Cliente

Re: [symfony-users] Re: changed fields

2010-04-21 Thread Gareth McCumskey
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

Re: [symfony-users] Re: changed fields

2010-04-21 Thread Tamas Amon
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 wrote: > Where do you need to check this? > > If you are using doctrine, than you can do use in model $this- >>getModified(true/false) meth

[symfony-users] Re: changed fields

2010-04-18 Thread Tom Ptacnik
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 wrote: > Hello, > > Something s misunderstood? > > On 15 April 2010 15:02, Tamas Amon wrote: > > > Hello, > > > I like to know if a form

[symfony-users] Re: changed fields

2010-04-18 Thread Tamas Amon
Hello, Something s misunderstood? On 15 April 2010 15:02, Tamas Amon 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