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:
|
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
Describe the bug
DynamoDbModelis no callinginitializeTraits()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
This should be solved, without BC, by just calling the base constructor:
Schema
Debug info
Version info