ryangjchandler / orbit

A flat-file database driver for Eloquent. 🗄
MIT License
872 stars 39 forks source link

Filament 3 bulk deletes do not work #157

Closed mikewink closed 3 weeks ago

mikewink commented 1 year ago

Hello Ryan,

I'm still working on my little side project that uses Orbit for content management. It works fine for the most part. Now, I found another problem. Bulk deletes do not work in Filament 3. I guess they do not, as no Model::delete is called for each individual model?

I have a simple to-do example that once persisting to SQLite and once to markdown files using Orbit. Furthermore, I can switch easily back and forth by commenting out the Orbital trait. Once in DB mode, it works just as expected.

Is there a way to fix that?

Thank you very much.

ryangjchandler commented 1 year ago

Hm, Orbit relies on model events for correctly deleting files etc. Let me have a think, there might be something we can do about it.

ryangjchandler commented 3 weeks ago

Sadly I don't think there's really anything we can do about this here as part of the package since Orbit relies on model events for removing content files.