Re: DB_DataObject_FormBuilder frozen link fields

From: Date: Sat, 16 Dec 2006 06:46:13 +0000
Subject: Re: DB_DataObject_FormBuilder frozen link fields
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45269@lists.php.net to get a copy of this message
On 12/15/06, arnaud sellenet <demental@free.fr> wrote:
Hi. I noticed that when a field is not declared as a userEditableField and it's a link, frombuilder builds a select (or radios), fetches the linked records and freezes it. Do you see any good reason not to create a static field instead and fetch only the linked record (if it exists) in this case, which can be (dramatically sometimes) cpu/memory saving? Do you think it's worth submitting a patch ?
I understand your use-case, but as the code currently stands this is not an easy thing to do. For my own systems what I've generally done for this is to use a prepareLinkedDataObject callback to set the key to the currently selected value so that the element only gets the current option. I'll keep this in mind for the future. Feel free to open a feature request for FB in the bug system. -- Justin Patrin

« previous php.pear.dev (#45269) next »