morilog / InfinityCache

Infinity cache for Laravel Eloquent models and queries
MIT License
31 stars 7 forks source link

Bugfix: Illuminate\Database\MySqlConnection is given to Builder's constructor instead of Illuminate\Contracts\Cache\Repository #2

Closed bedemiralp closed 8 years ago

bedemiralp commented 8 years ago

Bugfix: Illuminate\Database\MySqlConnection was being passed to Builder's constructor by Illuminate\Database\Query\Builder on line 1890 instead of Illuminate\Contracts\Cache\Repository. newQuery method which is being introduced to Builder is overrides the parent with the correct implementation.

morilog commented 8 years ago

tnx for contributing