2725 search results for Doctrine

In my company we work with Symfony but for Doctrine they says: "we will not use Doctrine because of performance issue with tons of data". Are they right? If not give me arguments to convince them they are wrong. ...
Paweł C.
Paweł C.
Read Full Comment
Hello, What is the best practice to add an one to one cross database relationship with Doctrine? Seems by default doctrine doesn't support this and wonder if we can achieve this somehow. Thanks a lot. ...
Hey Lily Look's like your composer didn't install the bundle, can you double check by looking at "/your/project/vendor/doctrine/doctrine-fixtures-bundle/" that directory should exists Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hi everybody, I have a question about Doctrine : if, i have to connect to an existing database, with tables and foreign keys, will Doctrine still be okay to do that ? Thanks ...
Gremet Laurent
Gremet Laurent
Read Full Comment
One Q : why is Doctrine so "obvious" at the newAction level ($this->getDoctrin()->...) ? Do we discover later how to abstract it yet further where our entire controller could just change from Doctrine to something different? ...
Richie Hamburg
Richie Hamburg
Read Full Comment
I got this error after adding the hash_password_listener to services.yml: Doctrine event listener "app.doctrine.hash_password_listener" must specify the "event" attribute. Adding ', event: prePersist' to the tag fixes this, but perhaps I missed something when creating the Doctrine event listener? ...
... Thanks. I'm posting here the final code: $em = $this->getContainer()->get('doctrine')->getManager(); $em->getConnection()->exec('SET foreign_key_checks=0'); $purger = new ORMPurger($this->getContainer()->get('doctrine')->getManager()); $purger->purge(); $em->getConnection()->exec('SET foreign_key_checks=1'); ...
... Nope, I'm running symfony 2.8 and sadly there is no var/cache directory... $em=$this->getDoctrine()->getManager(); works fine and I get autocompletion for every step. $em2=$this->container->get('doctrine')->getManager(); stops the autocompletion after get('doctrine'). ...
Yes, it has something to do with symfony cli because both serve and doctrine commands use root database. If I use `php81 bin/console doctrine...` and laragon it uses the symfony6_upgrade. ...
Slawomir-B
Slawomir-B
Read Full Comment
... If you're on the Symfony 6 track and feel like you're missing a course between "Doctrine, Symfony 6 & the Database" and this one, you are. It's this one: https://symfonycasts.com/screencast/doctrine-relations
Hey Yard, Perhaps you're on a newer Doctrine version? That's happening because Doctrine uses proxies under the hood for performance reasons. Try calling any method on the repository before the dump call Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
If you have this error => Attempted to call an undefined method named "getCacheDriver" of class "Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory" and you version of SF is 5.4.8. Do composer req doctrine/persistence ^2.4 and the problem is solve ...
Hey Gustavo D. There is not an oficial release date yet but this course should happen after "Doctrine Relations" (https://symfonycasts.com/screencast/doctrine-relations) so, it should not take too long :) Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
hey sadikoff thanks for your reply. I installed the exact version and now I have "doctrine/doctrine-fixtures-bundle": "2.4.1" in composer.json, but I still get the same exact error as before... ...
Hi A little update for composer migrations dependencies. Currently composer try to install ^3.1. To make it work (and be consistent with finish project) I use composer require doctrine/doctrine-migrations-bundle "^2.0" ...
atournayre
atournayre
Read Full Comment
Hey Georg It seems like you figured it out but in any case, I'll leave you here the documentation of how to configure multiple EntityManagers on Symfony + Doctrine https://symfony.com/doc/current/doctrine/multiple_entity_managers.html Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Thank you guys, so tricky, does there any difference between ? ``` ->leftJoin( 'AppBundle:GenusNote', 'genus_note', \Doctrine\ORM\Query\Expr\Join::WITH, 'genus = genus_note.genus ...
Hi! Just an update - this should not be a problem anymore - we've been waiting for 2 new releases (from doctrine/extensions and stof-doctrine-extensions-bundle) and both have now been released. 🎉 Cheers! ...
weaverryan
weaverryan
Read Full Comment
Found A Solution, you simply need to downgrade the doctrine/common to 2.13 so that it matches the Gedmo required version and the extensions bundle: composer require doctrine/common:^2.13.3 --update-with-dependencies and you're OK to go. ...
Hi, this might be a solution for you: https://github.com/Symplify/ModularDoctrineFilters It doesn't depend on Controller, nor Doctrine yaml configuration, nor Doctrine bundle. It is standalone and easily portable to any project. ...
Tomáš Votruba
Tomáš Votruba
Read Full Comment