Paul Johnston wrote: > I have some code I keep using that I hope you'll add to Elixir. > Essentially it is a "deep_set" method. So while obj.set() sets > properties just on that object, deep_set takes a hash/list > hierarchy and updates relations as well. > > I just proposed adding this to core SA and Michael declined. Still > think this is a useful feature for an ORM so hope you will include > it. If you decide this is worth pursuing, I will do the work to > produce a patch with unit tests.
I think it might be valuable, but I think in order for it to be accepted, I'd prefer it to be bi-directional. From what I understand, this code just allows you to perform inserts and updates based upon what appears to be a JSON data structure. Ideally, I'd like it to be able to generate that structure as well. If it did this, I'd be highly likely to accept such an extension. It'd be nice if it was a statement that attached this behavior to the decorated entity. -- Jonathan LaCour http://cleverdevil.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" 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/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
