Fix for transformer timestamp
This commit is contained in:
parent
681bfe4c69
commit
ae88ebf6a4
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class EntityTransformer extends TransformerAbstract
|
|||
|
||||
protected function getTimestamp($date)
|
||||
{
|
||||
return $date ? $date->getTimestamp() : null;
|
||||
return method_exists($date, 'getTimestamp') ? $date->getTimestamp() : null;
|
||||
}
|
||||
|
||||
public function getDefaultIncludes()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue