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

Process command: could not convert PHP value ...\DatePoint to type ...\DateTimeType #69

Open
czachor opened this issue Dec 16, 2024 · 0 comments

Comments

@czachor
Copy link

czachor commented Dec 16, 2024

Command: php bin/console shapecode:cron:process 2 (or any other existing ID).

Similar issue #65 (with scan command).
Latest version (7.2, PHP 8.3, doctrine/orm 3.3.0, Symfony 7.1).

Could not convert PHP value of type Symfony\Component\Clock\DatePoint to type Doctrine\DBAL\Types\DateTimeType. Expected one of the following types: null, DateTime.

Stack trace:

Exception trace:
  at /var/www/example.org/vendor/doctrine/dbal/src/Types/Exception/InvalidType.php:51
 Doctrine\DBAL\Types\Exception\InvalidType::new() at /var/www/example.org/vendor/doctrine/dbal/src/Types/DateTimeType.php:43
 Doctrine\DBAL\Types\DateTimeType->convertToDatabaseValue() at /var/www/example.org/vendor/doctrine/dbal/src/Statement.php:86
 Doctrine\DBAL\Statement->bindValue() at /var/www/example.org/vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:245
 Doctrine\ORM\Persisters\Entity\BasicEntityPersister->executeInserts() at /var/www/example.org/vendor/doctrine/orm/src/UnitOfWork.php:1051
 Doctrine\ORM\UnitOfWork->executeInserts() at /var/www/example.org/vendor/doctrine/orm/src/UnitOfWork.php:400
 Doctrine\ORM\UnitOfWork->commit() at /var/www/example.org/vendor/doctrine/orm/src/EntityManager.php:264
 Doctrine\ORM\EntityManager->flush() at /var/www/example.org/vendor/shapecode/cron-bundle/src/Command/CronProcessCommand.php:143
 Shapecode\Bundle\CronBundle\Command\CronProcessCommand->recordJobResult() at /var/www/example.org/vendor/shapecode/cron-bundle/src/Command/CronProcessCommand.php:121
 Shapecode\Bundle\CronBundle\Command\CronProcessCommand->execute() at /var/www/example.org/vendor/symfony/console/Command/Command.php:279
 Symfony\Component\Console\Command\Command->run() at /var/www/example.org/vendor/symfony/console/Application.php:1047
 Symfony\Component\Console\Application->doRunCommand() at /var/www/example.org/vendor/symfony/framework-bundle/Console/Application.php:123
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /var/www/example.org/vendor/symfony/console/Application.php:316
 Symfony\Component\Console\Application->doRun() at /var/www/example.org/vendor/symfony/framework-bundle/Console/Application.php:77
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/example.org/vendor/symfony/console/Application.php:167
 Symfony\Component\Console\Application->run() at /var/www/example.org/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49
 Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run() at /var/www/example.org/vendor/autoload_runtime.php:29
 require_once() at /var/www/example.org/bin/console:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant