[eluser]dejavu[/eluser]
I want to enrich some tables of standard code bases with more data. Instead of modifying the tables or changing the code, I'd like to do an inner join on the table's id, so I preserve the original table but add a few features.
So for example, let's say Drupal has a user table with
uid
name
email
login
pass
I'd like to have my DMZ table show
id
phone
notes
drupal_userid
Then using an inner join, I'd like to have these fields in my DataMapper object:
id
name
email
phone
notes
login
pass
I figure I can override methods (get, save_as_new, save, etc.) in DataMapper, but I want to minimize how much I touch the code. Any suggestions on how to do this gracefully?
Thanks.