This may be an impossible question - but if anyone has any ideas, even if it's a bespokely written solution
We're trying to come up with an idea for a simple program to send out to people, backed by a database. At a simplistic level, there will be a "User" object, which just has name and email. The program just allows someone to edit the name and email, and all is good
Then we want other developers to be able to add their own fields, and write a "plug-in" to edit it. So, I've got a copy of the program, I've been able to write my plugin that adds "comany name" to the form - and it could stand alone with the data layer, but the problem with this method is that you end up running two database commands
select name, email from user select companyname from user
Ideally, it would be really cool if the plugin to add something to the datalayer to say, include companyname on user, then you only have one command
select name, email, companyname from user
Perfect...but how
Ideas on a postcard - or at least as an answer on here