2725 search results for Doctrine

During `composer up` get error ``` Compile Error: Declaration of ContainerBpUs7F4\EntityManager_9a5be93::refresh($entity) must be compatible with Doctrine\ORM\EntityManager::refresh($entity, ?int $lockMode = null) ``` ...
Had the same problem with Symfony 5.0. See: https://github.com/symfony/symfony/issues/48717 Maunally change version of doctrine/annotations to ^1.14 ...
Hey! After installing `stof/docrtine-extensions-bundle` Symfony is throwing this error: `Call to undefined method Doctrine\Common\Annotations\AnnotationRegistry::registerLoader()`. My version of Symfony is 6.2.1. ...
Oh geez 🤦 - https://symfonycasts.com/screencast/symfony-doctrine/docker-compose#comment-28388 - here it is (also added to my original comment above). Sorry about that! ...
weaverryan
weaverryan
Read Full Comment
Whoops, I missed somehow that tutorial uses 'user'. You can always force doctrine to use any table name you need with `@ORM\Table()` annotation =) Cheers ...
Hi guys, I got a general question about doctrine, where you flush/persist an entity ? In repository ? controller ? on a service ? ...
Hey there, Doctrine has removed their cache implementation from their source code, you should use Symfony's cache or any other caching service. Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hi @August Thanks for you interest in us! I suppose it will came after our new doctrine course, but I can't provide you any eta on it =) Cheers! ...
Cool just making sure there wasn't some more complicated purpose behind it like doctrine having to query the database or entity persistence or something ...
Recently I wrote and article about decoupled Filters and how to build them: http://www.tomasvotruba.cz/blog/2016/04/30/decouple-your-doctrine-filters It's easy if you try :) ...
Tomáš Votruba
Tomáš Votruba
Read Full Comment
I solved everything with doctrine extensions now. Don't know the best practise? Provider or extension? But for me it works great now. ...
Big thanks! One problem: Invalid: `->orderBy(['yearsStudied', 'DESC'])` Valid `->orderBy(['yearsStudied' => 'DESC'])` Information from official repository Doctrine Collections: Link to github ...
Hey Deplaine N. Does this `doctrine/common:3.0` is installed by course code? Or you updated course code? Or it's your own code? Cheers ...
Hey all, this should be fixed in Foundry v1.1.2 (https://github.com/zenstruck/foundry/releases/tag/v1.1.2) - I allow doctrine/persistence v2 ...
hi MolloKhan I removed doctrine/cache library and it worked! yeahhhh!! I hope I won't have any problem after that! Thanks for your help! Cheers, Val ...
Valgritim
Valgritim
Read Full Comment
Thanks weaverryan - I'll take look at the suggested tutorials as well as the API Platform next while the Doctrine for Symfony 5 gets built. Appreciate it! ...
I am a dope! RTFM, https://symfony.com/doc/current/messenger.html#doctrine-transport, under options "redeliver_timeout" Can't see the forest for the trees. ugh, quitting time. ...
Michael H.
Michael H.
Read Full Comment
Hey Kutay Deril Sadly we are not in charge of the Doctrine project but you can send them your feedback: https://www.doctrine-project.org/community/index.html Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
thanks, i know what it is, can't figure out how to make doctrine is trying to update a row , not create a new one ...
Hey Cybernet2u, Here's the explanation how it works: https://symfonycasts.com/screencast/doctrine-relations/relationship-types#onetoone-the-cousin-of-manytoone I hope this helps. Cheers! ...