Change ID field

100 views
Skip to first unread message

StrikerNL

unread,
May 22, 2012, 4:23:41 AM5/22/12
to redbeanphp
I'm porting an old project with a custom built ORM to redbean. My
problem is, the database obviously already exists. Unfortunately, the
schema is defined with caps in table and column names.

All primary key fields are named "Id" (capital I) instead of "id". Is
there any way I can use this database with redbean without modifying
the database schema?

Nick

unread,
May 22, 2012, 9:26:24 AM5/22/12
to redbe...@googlegroups.com
Unfortunately, I don't think this is going to be well supported... see: http://redbeanphp.com/extra/custom_mapping

StrikerNL

unread,
May 29, 2012, 3:25:33 AM5/29/12
to redbeanphp
That is unfortunate indeed. I guess I can still use all the get*()
features, while slowly porting all the code to RB, then rename the
fields.
Reply all
Reply to author
Forward
0 new messages