> (defun delete-order (order)
>       (mapcar #'(lambda (i) (drop-instances (list i))) (items-of order))
>       (drop-instances (list order)))

Thank you very much Robert.
Very simple and clear example of dealing with one-to-many relationships.
This must be an elephant tutorial.
Although cascading deletes are indeed a nice feature of sql servers, I'm
fedup with sql inflexibility dealing with complex hierarchies of objects. I
want to try OODB. Elephant is the only choice in a lisp land. Allegrocache
is expensive, rucksack in its infancy.
So far I like it.

Regards,
Vagif


_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel

Reply via email to