hookable icon indicating copy to clipboard operation
hookable copied to clipboard

Hooks are being duplicated from child classes

Open ragingdave opened this issue 7 years ago • 2 comments

It seems that hooks are being duplicated in the pipeline for models that extend a base class that includes the Eloquence traits. As an example creating a base model and including eloquence, mappable, and mutable, end up adding into the pipeline 2 mappable hooks and 2 mutable hooks.

This ends up some how entering an infinite loop. This seems to also only happen when a large number of models using both mappable and mutable are all related and used en masse.

ragingdave avatar Jul 10 '18 19:07 ragingdave

can you share example setup that caused problems?

jarektkaczyk avatar Jul 13 '18 07:07 jarektkaczyk

It was basically as I described, create a base model which has the traits of eloquence, mutable and mappable, then create a child class that extends that base class without the traits.

ragingdave avatar Sep 08 '18 22:09 ragingdave