-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed handling of timestamp columns on Pivots
Now, the timestamp column names on the Pivot tables can be different than timestamp columns on the Parent model. They can be set by the withTimestamps() method. If they are not set by this method they still be inferred from attributes and the timestamp column names will be inferred from the Parent model. Also the usesTimestamps() logic was enhanced on the Pivot models, both timestamp column names (createdAt and updatedAt) have to be set in the attributes, to set usesTimestamps() to true.
- Loading branch information
Showing
4 changed files
with
152 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters