Closed projct1 closed 7 years ago
Please ask on the forums, this repo is for bug reporting only. You can use https://laracasts.com/discuss or https://laravel.io/forum which are forums with a very large community of developers helping each other.
But ist bug! Expected behaviour is updating timestamps on OrderSms table.
@themsaid I updated code.
I also think this is a bug. @themsaid, please review.
The issue is that when you load a Pivot Model directly (like in the example above) the $pivotParent
property is not set.
Then, the getCreatedAtColumn()
and getUpdatedAtColumn()
functions fail because they reference that $pivotParent
property.
A possible solution is to return the model own timestamps when no $pivotParent
is set.
Description:
As result is
Call to a member function getUpdatedAtColumn() on null
. I have to use: