-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Description
Describe the bug
DynamoDbModel
is no calling initializeTraits()
method, introduced in 5.7 (https://github.com/laravel/framework/blob/5.7/src/Illuminate/Database/Eloquent/Model.php#L168).
Current package constructor implementation:
laravel-dynamodb/src/DynamoDbModel.php
Lines 70 to 79 in 9638116
public function __construct(array $attributes = []) | |
{ | |
$this->bootIfNotBooted(); | |
$this->syncOriginal(); | |
$this->fill($attributes); | |
$this->setupDynamoDb(); | |
} |
This should be solved, without BC, by just calling the base constructor:
public function __construct(array $attributes = [])
{
parent::__construct($attributes);
$this->setupDynamoDb();
}
Schema
Debug info
Version info
- Laravel: 5.8
- laravel-dynamodb: 6.1
Metadata
Metadata
Assignees
Labels
No labels