stof / StofDoctrineExtensionsBundle

Integration bundle for DoctrineExtensions by l3pp4rd in Symfony
https://symfony.com/bundles/StofDoctrineExtensionsBundle/current/index.html
MIT License
1.89k stars 381 forks source link

Timestampable not working when persisting data in database ( enable to set dateTime to createdAt & updatedAt ) #478

Closed hyper112 closed 2 months ago

hyper112 commented 6 months ago

Gedmo\Timestampable\Mapping\Event\Adapter\ORM::getRawDateValue(): Argument #1 ($mapping) must be of type array, Doctrine\ORM\Mapping\FieldMapping given, called in C:\symfony\symfony7\vendor\gedmo\doctrine-extensions\src\Timestampable\Mapping\Event\Adapter\ORM.php on line 35 enable to set dateTime values of createdAt and updatedAt automaticly when persisting data

baiello commented 6 months ago

You got your answer on DoctrineExtensions repo ;)

Downgrade doctrine/orm to 2.18, or use Doctrine Events.