> (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
On Mon, 2008-04-07 at 16:51 -0700, Vagif Verdi wrote:
> If I will make item class persistent, then items will be saved independently
> of their parent. That means manual housekeeping.
> When order object is deleted, I will have to intercept that and manually
> delete all items objects.
> And this i
If I will make item class persistent, then items will be saved independently
of their parent. That means manual housekeeping.
When order object is deleted, I will have to intercept that and manually
delete all items objects.
And this is only simplest hierarchy.
Imagine how much manual work must be