12 Jul 2006 20:12
Dependency
comfortablementeadormecido <terevalis <at> gmail.com>
2006-07-12 18:12:11 GMT
2006-07-12 18:12:11 GMT
I keep playing around with metastorage and another thing came to my attention. There is no way to set a dependency between objects. For instance, imagine you have the entities State and City, when you delete a state every city for that state shoud be deleted in order to mantain consistency with the data in the City table (many of them would retain an id to a deleted State). This is obviously easy to do by setting a delete method for the cities and state and another method for the state which would get its collection, call the delete method in each city and then call delete for the current state or a similar algorithm. But i think it could be considered for a future release that when you set the collection relation you could set such things so you don't end up with two functions to delete a state (the standard and the custom one). What do you think? ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~->
RSS Feed