DBAL types to Doctrine 2 that add support for conversion of unix timestamps to datetime object and vice versa:
unixdatetime
unixdatetime_immutable
For more information check out the documentation of Doctrine Custom Mapping Types and Registering custom Mapping Types in Symfony.