Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooks are being duplicated from child classes #19

Open
ragingdave opened this issue Jul 10, 2018 · 2 comments
Open

Hooks are being duplicated from child classes #19

ragingdave opened this issue Jul 10, 2018 · 2 comments

Comments

@ragingdave
Copy link

ragingdave commented Jul 10, 2018

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.

@jarektkaczyk
Copy link
Owner

can you share example setup that caused problems?

@ragingdave
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants