I'm trying out api-platform.com. It seems to send datetime payload as DateTimeImmutable object. DateTimeConverter::toDatabaseValue() line 33 only allows DateTime objects. Changing it to DateTimeInterface should fix it. It should allow any objects that implement DateTimeInterface regardless.