2709 search results for Doctrine

... Hey Lavin I'm far from being an expert on translating a site but what I would do is to add a listener for detecting which language is chosen (parsing the URL) and storing it on a session key. Then I would create a doctrine filter for automatically inject the WHERE clause using the session. Cheers!
MolloKhan
MolloKhan
Read Full Comment
... downloading the course code for this (the Doctrine Relations) tutorial? What version of Composer do you see if you run `composer --version`? Cheers!
weaverryan
weaverryan
Read Full Comment
Sorry, i talked too fast now i have this error "Uncaught PHP Exception Doctrine\DBAL\Types\ConversionException: "Could not convert database value to 'array' as an error was triggered by the unserialization: 'unserialize(): Error at offset 0 of 10 bytes'" do you have an idea ...
Nicolo B.
Nicolo B.
Read Full Comment
... cascade operations here: https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/working-with-associations.html#transitive-persistence-cascade-operations Cheers!
MolloKhan
MolloKhan
Read Full Comment
Ohh you are on MySql 8, in that version the password encryption changed. Take a look to this post: https://stackoverflow.com/questions/51489616/how-to-configure-doctrine-symfony-4-to-connect-with-mysql-8-0 You can just ...
MolloKhan
MolloKhan
Read Full Comment
... could not find driver (Doctrine\DBAL\Exception\DriverException) So all steps are skipping. How can I fix it? Thank you in advance.
... declared abstract or implement the remaining methods (Doctrine\Common\DataFixtures\DependentFixtureInterface::getDependencies) in /var/www/dev/svfx/src/DataFixtures/PostFixtures.php on line 51
... power of collections until I was given to look for that function, lol => https://www.doctrine-project.org/projects/doctrine-collections/en/latest/index.html#collection-methods
Jose carlos C.
Jose carlos C.
Read Full Comment
... 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 ...