I have two servers:
- Server A: MySql
- Table A
- key-a
- foreign-key-b
- Table A
- Server B: MsSql
- Table B
- key-b
- foreign-key-a
- Table B
Presumably I have two objects with methods that handle the relationships:
TableA->getRelatedTableB();
TableB->getRelatedTableA();
This is easy to implement in most ORMs. But what if I want to get a large set of objects with only one query per database server? Ideally the framework would abstract this and do the logical join so that the developer can pretend he doesn't know anything about the database(s). Something like:
FinderObject->getAlotOfTableAObjectsWithTableBAlreadyLoaded()
and it would perform a query on each database and logically join the results in some efficient manner.
Does anyone know of a way to implement this in Doctrine or some other php ORM framework?