Replies: 1 comment 7 replies
-
|
The issue is that the Builder is returned instead of the model. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I find the interraction between the model and the builder quite error prone when using tap on a model without the
Tappabletrait.I would expect by default to be updating the the model instance but instead, in this exemple, I am updating my whole table since we are calling tap through
$this->forwardCallTo($this->newQuery(), $method, $parameters);of the__callmethod of the model.Also I dont understand why the traits BuildQueries has a custom
tapmethod instead of just using theTappabletrait.Beta Was this translation helpful? Give feedback.
All reactions