oh and i just saw your patch. OK, i see what youre getting at. the "orphan" idea was built to support the notion of the object being attached to a parent of the same type. ill have to think about if i want it to work the way youre proposing, i.e. the instance can be attached to any number of types of parents. im not sure if that really works, because the idea of "orphan" is intended to be a data-integrity feature. i want to see what hibernate says about it (although its likely that hibernate just doesnt bother....thats frequently their approach).
one way that you could make your test work right now (actually i should test this) is by using inheritance, i.e. defining a common parent class of Home and Business and defining a mapper against that. although that would mean we're defining an "abstract" base mapper...im not sure how feasable that is...OK..let me look at this a little. also the patch fails the unit tests that specifically test the orphan function. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
