@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function hydrate(array $attributes = []) |
33 | 33 | { |
34 | 34 | $attributes = $this->castingManager |
35 | - ->castArray($attributes, $this->mapper->getCasts()); |
|
35 | + ->castArray($attributes, $this->mapper->getCasts()); |
|
36 | 36 | $attributes = Arr::renameKeys($attributes, $this->mapper->getColumnAttributeMap()); |
37 | 37 | $class = $this->mapper->getEntityClass() ?? GenericEntity::class; |
38 | 38 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | array_flip($this->mapper->getColumnAttributeMap()) |
47 | 47 | ); |
48 | 48 | $data = $this->castingManager |
49 | - ->castArrayForDb($data, $this->mapper->getCasts()); |
|
49 | + ->castArrayForDb($data, $this->mapper->getCasts()); |
|
50 | 50 | |
51 | 51 | return Arr::only($data, $this->mapper->getColumns()); |
52 | 52 | } |