Basically, it would be really nice to delete something and have it automatically search out and delete all of the rows and fields connected to it, rather than having to do all of that manually.
For example, using eager loading, I can eager load like so:
Page::with(array(
'elements',
'elements.drafts',
'elements.content',
'elements.content.drafts'
))->where('myField', '=', $value)->first();
is there a way to do something similar for the delete operation? Something like:
Page::with(array(
'elements',
'elements.drafts',
'elements.content',
'elements.content.drafts'
))->where('myField', '=', $value)->delete();
Of course, I've tried the above code and it did not work. I'm providing it to help communicate what I'm looking for.