-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timestamps are not prefixed when updating many-to-many relationship #11815
Labels
Comments
Have the same problem , using a hasManyThrough relationship. Also mentioned here but marked as closed: #5440 . Laravel 5.2.29, PHP 5.5, MySQL 5.6 |
samrap
pushed a commit
to samrap/framework
that referenced
this issue
May 11, 2016
taylorotwell
pushed a commit
that referenced
this issue
May 18, 2016
symfony-splitter
pushed a commit
to illuminate/database
that referenced
this issue
May 18, 2016
* Fix issue [#11815](laravel/framework#11815) * Fix failed StyleCI analysis.
taylorotwell
added a commit
that referenced
this issue
May 26, 2016
taylorotwell
added a commit
that referenced
this issue
May 26, 2016
I still have this issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a many-to-many relationship of Users and Notices set up in Eloquent. The pivot table has timestamps and a 'read' field (so each user can mark a notice as read independently). Here are the relevant model definitions:
However, when I try to mark all notices for a user as read I get an error. The code I'm using is
The error is
The columns that are set should have the table prefix, i.e.
notice_user_map.read
andnotice_user_map.updated_at
Also the date isn't quoted, not sure if that's the exact query that was trying to be run or if that's just how Laravel is displaying it.
Laravel 5.1, PHP 5.5, MySQL 5.6
The text was updated successfully, but these errors were encountered: