Closed joeyrush closed 4 years ago
Thanks for reporting this. I will attempt to recreate and report back.
@joeyrush can you give release 0.8.10 a try and let me know how it works? Thanks!
Appears to be working.. Awesome job, thanks for the quick resolution!!
No problem, thanks for reporting it! :)
Describe the bug I get the following exception when trying to call update on a BelongsToMany relationship
Eloquent Query Very easy to recreate with a simple pivot table setup (a
company
belongs to manycurrencies
through thecompany_currencies
table).Important Note: the exception is only thrown when the cachable trait is on both the Company and the Currency models.
If I remove the Cachable trait, the update query runs as expected. (Note: exception is thrown regardless of whether I specify a column on the pivot table or a column on the currencies table for the update)
Stack Trace
Environment