gabordemooij/redbean — pull request #198 by dannykopping (2012-09-23 17:13:51+00:00)
Title: Fix for naming foreign key naming overriding

As far as I can tell, there is no way to override RB's propensity for using the "_id" suffix on FK identifiers. Personally, I like camel-case (`userId`, not `user_id`) and this fix allows for that by doing the following:

$obj = R::dispense("table");
$obj->setMeta("sys.alias.RelatedTableName", "foreignKeyName");