Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hyper112 opened this issue Feb 24, 2024 · 1 comment
Labels

Comments

@hyper112
Copy link

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

@hyper112 hyper112 added the Bug label Feb 24, 2024
@baiello
Copy link

baiello commented Feb 26, 2024

You got your answer on DoctrineExtensions repo ;)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants