protected function convertValueToString($value) { if ($value instanceof \DateTime) { $value = $value->getTimestamp(); } return (string) $value; }