andersao / andersao/l5-repository
Pluck issue in loops
Offen
- Vorherrschende Sprache
- PHP
- Sterne
- 4.2k
- Forks
- 880
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
We found out that there is an issue with pluck method when used in loops: after pluck result is returned, I think you should resetModel and resetScope as you already did with get().
If you don't resetModel and resetScope, in a loop that use the same repository multiple times, you will have also previous applied criterias which are not resetted using resetCriteria.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.