symfony
symfony forum
Home » support » General discussion » Hide 'updated_at' in edit
Hide 'updated_at' in edit [message #20856] Fri, 02 February 2007 20:42 Go to next message
sfxpt  is currently offline sfxpt
Messages: 339
Registered: January 2007
Location: Canada
Faithful Member
Hi,

In almost all tables, I add this "updated_at" at the end of the fields so as to track when the record was last changed.

Is there a generic way to hide this "updated_at" field when editing, but show it in list view -- the only way I know is to go into each table's generator.yml file and list every field except this one in edit:

thx


http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Re: Hide 'updated_at' in edit [message #20867 is a reply to message #20856 ] Fri, 02 February 2007 23:18 Go to previous messageGo to next message
pezetgee
Messages: 734
Registered: March 2006
Faithful Member
I guess there is a way to do it, but it would require overwritting some core classes of symfony or propel generator (AFAIK)

Much easier is to just edit the generator.yml file Cool
Re: Hide 'updated_at' in edit [message #20868 is a reply to message #20856 ] Fri, 02 February 2007 23:19 Go to previous message
COil  is currently offline COil
Messages: 465
Registered: September 2006
Faithful Member

Yes u must specify the fields in generator.yml list and edit sections, that's the right way to do it.


my Symfony Blog - http://www.strangebuzz.com
The symfony web debug bar as a standalone library : PEAR::PHP_Debug
Previous Topic:DoSelectLast?
Next Topic:[RESOLVED] unable to load helper exception
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software