#Is it possible to dynamically enable/disable model events in a seeder?

2 messages · Page 1 of 1 (latest)

storm iron
#

I have a seeder where in some cases I want to enable model events and sometimes not.

I know I can use the WithoutModelEvents trait but this is an all or nothing deal. Can I do this on the model temporarily?

amber star