I have previously requested the feature of adding aliases to the table/object names, because I have to deal with tables named tblxxx too.. The code would look alot nicer if the generated objects had discarded the 'tbl' prefix (by giving it an alias).
Doing the same thing for columns would be great as well..
At 12:29 09.02.2006 -0600, you wrote:
I think this would be great as sometimes I have to use legacy named tables with the 'tbl' prefix. I also like to name my tables in plural, "users", "orders", but I like to have my objects singular, "user", "order". I also like to name my columns in the db with an underscore, but my methods are camelCase. Of course, this probably adds a level of complexity that Doug may not want to attempt.
On 2/9/06, Miller, Ryan <[EMAIL PROTECTED]> wrote:
To follow up my questions on Views and in relation to the other discussion about only saving certain values.
Is adding some mapping capability to the config xml been discussed or planned?
Or does this little community prefer doing it's mappings via Views?
I'm thinking about diving into the code to add support for something like this in the config xml
<object name="SomeClass" table="SomeTable">
<fields>
<field name="someID" column="ID" />
<field name="name" column="some_name" />
</fields>
</object>
I thought I'd just float the idea here to see if this has been discussed or tried already before jumping in with both feet.
Thanks,
Ryan Miller
--
Marlon
/ [EMAIL PROTECTED]

