mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-18 04:48:39 +00:00
This fixes #52
This commit is contained in:
parent
bb923a8701
commit
1ad61d92fa
|
|
@ -404,10 +404,12 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
|
||||
if ($column['type'] === 'DateTime') {
|
||||
$value = isset($value) ? $value->format('Y-m-d H:i:s') : null;
|
||||
} elseif ($column['type'] === 'Json') {
|
||||
} elseif ($column['type'] === 'json') {
|
||||
$value = isset($value) ? json_encode($value) : '';
|
||||
} elseif ($column['type'] === 'Serializable') {
|
||||
$value = $value->serialize();
|
||||
} elseif ($column['type'] === 'jsonSerializable') {
|
||||
$value = $value->jsonSerializable();
|
||||
} elseif (is_object($value)) {
|
||||
$value = $value->getId();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user