Thanks for the response. In particular, I was thinking about form generation. It makes sense to me to be able to add optional attributes to a field’s xml that would specify what type of html form element would be used to generate it (or more likely, an attribute that specified which function in a FormGeneration class would be called in order to generate the necessary form element).
E.g.
<field key="firstname" dbtype="varchar" precision="20" phptype="string" null="false" default="" form_element="text"/>
OR
<field key="country" dbtype="varchar" precision="20" phptype="string" null="false" default="" form_element="country_dropdown"/>
I’ve tinkered around with this a lot with a FormGeneration library I’ve written... there are times when I feel this type of stuff should appear only in the view, but there are other times when I feel that the form elements are tightly bound to the field definition (e.g. in the case of an enum). What I would like to avoid is having multiple definitions scattered throughout the site that all apply to the same table/model.
There might be other instances where being able to extend the field’s attributes could be useful to 3rd-party component development.