Closed BeyondRico closed 3 years ago
Hi @BeyondRico, which versions or Symfony and Doctrine are you using?
Hi @BeyondRico, which versions or Symfony and Doctrine are you using?
Symfony version: 5.1.6 Doctrine bundle: 2.1.2 Doctrine orm: 2.7.3
don't know which version you need from doctrine
Hi @BeyondRico, this was a bug and it should be fixed with: https://github.com/Locastic/ApiPlatformTranslationBundle/pull/31. Thank you for reporting, please update to new version and let me know if this solved your issue :)
whatever I try to do I always get the error:
"Argument 1 passed to Locastic\ApiPlatformTranslationBundle\EventListener\AssignLocaleListener::prePersist() must be an instance of Doctrine\Common\Persistence\Event\LifecycleEventArgs, instance of Doctrine\ORM\Event\LifecycleEventArgs given, called in C:\xampp\htdocs\Symfony\project_4\vendor\symfony\doctrine-bridge\ContainerAwareEventManager.php on line 58"
I followed the readme and uses two different json formats to post. both resulting in the error above.
Here are my entity's: Event.php
EventTranslation.php