2726 search results for Doctrine

... expert about that, just wondering) ? Or maybe Doctrine has something similar to transactions (what's the `down` method for ?) ?
... " A circular reference has been detected. This is a common problem with the serializer and Doctrine objects." Just when i thought that you are gonna show us a fix ... well ... i lost my hope. do you think you can provide a fix in the future ? because it's a common problem :)
Hi Victor, Thanks for your reply, that worked, my only concern is that through phpmyadmin I don't see the database created and neither informations that were registered through Doctrine. Would I be able to access those infos through phpmyamdin or is it normal that I dont see them ? Regards, ...
Olivier R.
Olivier R.
Read Full Comment
Hi Team ! I struggle on two issues based on events, collection and doctrine uniqueConstraints > uniqueConstraints is detected only when trying to insert in the DB which cause an exception. So tried to catch the ...
... Debug Toolbar - go to Doctrine queries and see if you have extra queries for those data you use in addSelect() or no. Cheers!
... I'm getting a really strange error: Cannot autowire service "AppBundle\Service\MarkdownTransformer": argument "$cache" of method "__construct()" references interface "Doctrine\Common\Cache\Cache" but no such service ...
Hey, I think doctrine present a lot of joins types (innerJoin, Join, leftJoin, outerJoin...bla bla) :( What I'm supposed to learn with symfony as Join types. 1) Waht is the dffierence between InnerJoin, Join and leftJoin ? 2) Does addading the fetch='EAGER' annotation on $frtuneCookies do the same job of addSelect()? ...
... stof_doctrine_extensions.yaml file, just like we did with timestampable here: https://symfonycasts.com/screencast/symfony-doctrine/timestampable Cheers!
weaverryan
weaverryan
Read Full Comment
Hi Ryan, Doesn't the serialization problem starts when you point the entity Event to the entity User (I mean, when you give them the one-to-many relationship)? Maybe the "Symfony2 Security Manager" doesn't like that. I would like to know, because otherwise the elderlies of Doctrine should fix this. ...
Hey Teo Nope, that's because of the convention being followed by Doctrine, you can choose the "underscore" or "camelcase" strategy, or create your own strategy. You can check the full config list here: https://symfony.com/doc/current/bundles/DoctrineBundle/configuration.html Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hey Scott I don't think there is something wrong with your approach (that's how we encrypt the password for users), although I'm not such a fan of Doctrine listeners, I would probably set that ApiToken right where users are created Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hey Maxim, I suppose you're talking about this problem: https://github.com/doctrine/dbal/issues/1110 - and looks like it's not fixed yet, at least I see the issue is still opened, so probably no other solutions except ...
... Eventually stopped on package "ruvents/doctrine-fixes-bundle", which fixes it. But I think it's a dirty hack. If you know, maybe there's another solution?
... I didn't know my mistake or not, but if I didn't write: use Doctrine\Bundle\FixturesBundle\BaseFixture; I can't do doctrine:fixtures:load ...
Hey Steffen, We're sorry about that! I just double checked our source code for this chapter: https://github.com/knpuniversity/symfony4/blob/master/knpu/ep3b-doctrine-relations/twig-extensions-library.md - it looks good ...
... Hello, I'm trying to start that code on symfony 4, but I got this error: Cannot autowire service "App\Service\MarkdownTransformer": argument "$cache" of method "__construct()" references interface "Doctrine\Common ...
... I've personally found this part is super-exciting - https://knpuniversity.com/screencast/doctrine-relations/collection-criteria#using-the-criteria-in-a-querybuilder We can create a helper class with all this static ...
toporovvv
toporovvv
Read Full Comment
I have used doctrine for years now and I keep learning new things that make it so much better. Thanks. May I ask, when will the next course come out? Should I review the Symfony 3 Forms: Build, Render & Conquer! for the latest info on forms or is there something better to review? ...
Hey Jean-tilapin I'm glad to hear that you could fix your problem, but I believe what happened was that for some reason the doctrine bundle recipe didn't get installed. When that happens, you can run `composer fix-recipes` and if it was missing, it will install it for you :) Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
... app.doctrine.hash_password_listener: class: AppBundle\Doctrine\HashPasswordListener autowire: true tags: - { name: doctrine.event_listener, event: prePersist, lazy: true }