Skip to content

Commit

Permalink
bug-fixed en las relaciones OneToOne
Browse files Browse the repository at this point in the history
  • Loading branch information
ddniel16 committed Jan 9, 2020
1 parent f39e029 commit d1fca76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions traits/GetToFieldsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public function __getToFields(?string $fields = NULL): array
(isset($data->__initializer__) && $data->__initializer__ instanceof \Closure)
||
(isset($data->__isInitialized__) && $data->__isInitialized__ === true)
||
(gettype($data) === 'object')
) {
$item[$key] = $this->_getEntityDateRelation($data, $value, false);
} else {
Expand Down

0 comments on commit d1fca76

Please sign in to comment.