ryangjchandler / orbit

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

Filament 3 bulk deletes do not work #157

Open mikewink opened 1 year 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.