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

feat: introduce "recycle()" method #804

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from

Conversation

nikophil
Copy link
Member

@nikophil nikophil commented Feb 2, 2025

fixes #794

this is a proposal based on what I said in the issue

I've not done this, because I don't know how to do this in a simple way:

But I don't know if in this case, we should ensure the integrity of the data and always pick the same airline for both the ticket and its flight. I'm tempted to say "yes", because for me the whole point of this recycle() method would be to ensure integrity of the model. As far as I understand, this would differ from Laravel's recycle() method, where they always pick data randomly from the recycle collection.

By the way, I'm not a huge fan of the name recycle(), and because I'm not sure that we do the same thing than in Laravel, maybe we can change its name? stickTo() or something like that?

@nikophil nikophil requested a review from kbond February 3, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

recycle() method
1 participant