Database Column Type: DateTime with Microseconds
Last week we needed to add a datetime column in a database table. The issue was that we needed this datetime with microseconds, so something like 2019-10-31 07:23:38.774932. This is not supported by the Doctrine DBAL Package. At the moment we are running PHP 7.3.9, Symfony 4.3.5, Doctrine/DBAL 2.9.2 and MySQL 5.7.26. Here’s how we solved it: Now that we…