laravel-repositories icon indicating copy to clipboard operation
laravel-repositories copied to clipboard

Issue - "With" method not forget the cache

Open YannikFirre opened this issue 5 years ago • 0 comments

Hello @Omranic ,

I have a issue with the "with" method.

Example : $reminders = $this->reminderRepository->with('services')->findAll();

If i update the "service" there is no change when i call again : $reminders = $this->reminderRepository->with('services')->findAll();

I must use ( so without cache for services ) : $reminders = $this->reminderRepository->findAll()->load('services');

I do something bad ?

Thanks ;)

YannikFirre avatar Aug 20 '19 14:08 YannikFirre