2714 search results for Doctrine

... noticed (not necessarily with the secret vault but with doctrine) is, if you want to store the production database user and password in the vault, you have to remove the DATABASE_URL key from your .env file as it overrides any other config. This behavior is described in the docs, but it threw me off for a seconds.
Tobias I.
Tobias I.
Read Full Comment
... getting MySql installed, I don't even mention it - which I *absolutely* should. My apologies for your making you lose time on this - but it's really good feedback. We'll be recording the Symfony 5 Doctrine tutorial soon and I'll make sure to do a better job there. Cheers!
weaverryan
weaverryan
Read Full Comment
... instance of Address. Did I miss something? The fancier way I like, and I haven't seen it before but I get the error An address can be an instance of Address or a string ("Doctrine\Common\Collections\ArrayCollection") given ...
... you some ideas https://stackoverflow.com/questions/8803585/database-design-with-dynamic-fields-single-table-vs-many-tables-many-indexes If you'll stick with a relational database (as it's MySql) I think you can build that system up on top of Doctrine DBAL Cheers!
MolloKhan
MolloKhan
Read Full Comment
... change. To do that, you'll need to get the initial version of your CheeseListing object. It's a bit tricky because of how Doctrine + Symfony Forms works but here I leave you a good article I found that explains how to do ...
MolloKhan
MolloKhan
Read Full Comment
... figure out what is the best way to incorporate the course code as again I experienced errors and missing services like the slack one and then phpunit error and then composer error on doctrine which does not get fixed with package install. The symfony version is 4.4.7. Please help!
andradacrisan
andradacrisan
Read Full Comment
... something in my app to send a message 3. when the terminal starts to output I Ctrl + C and stop messenger The database still has a row of data in it at this point now when I restart messenger, nothing happens. How can I get messenger to "restart" the handler code? EDIT: I should add I am using `doctrine://default` ...
Michael H.
Michael H.
Read Full Comment
... see addReference call in this class (better to expand all lines in that code block to see the full picture): https://symfonycasts.com/screencast/doctrine-relations/awesome-random-fixtures#codeblock-00ae1a5ad6 . So, if ...
... fetches relationships eagerly. The class that does that is this one: https://github.com/api-platform/core/blob/master/src/Bridge/Doctrine/Orm/Extension/EagerLoadingExtension.php I would add some debug code to this class ...
weaverryan
weaverryan
Read Full Comment
... some edge-cases when there are performance concerns... and these are rare :). Here's some info on this (in case you haven't seen it): https://symfonycasts.com/screencast/symfony-doctrine/service-subscriber So generally... I would kinda say "no" you shouldn't do this. But if you think you have a special case, let me know. Cheers!
weaverryan
weaverryan
Read Full Comment
... started out project but now I have learnt and used doctrine annotations in entities to modify the database) is this what causes weird extra no harm queries now? the database still always works using make migration and ...
... EntityManager into your service, and replace all calls to `$this->getDoctrine()` E.G. ``` // YourService.php use Doctrine\ORM\EntityManagerInterface; class SomeService { // This is how you inject the EntityManager into ...
MolloKhan
MolloKhan
Read Full Comment
... DataPersister are only used when reading/writing a resource through an API request, so loading fixtures with AliceBundle or creating a user programmatically won't trigger the password encoding. Using a Doctrine ...
Jérôme Zecca
Jérôme Zecca
Read Full Comment
... attribute)? I load a list of products via 'class' but on after selecting something and hit save i get error: "Unable to transform value for property path "licensed_products": Expected a Doctrine\Common\Collections\Collection ...
Nikolay S.
Nikolay S.
Read Full Comment
... delete them at the end of the request. Life is sad but I know this is the right thing to do. 2) Yes, doing this already, it's fine. 3) Mmm agree, on Doctrine transport it'll definitively take too long and i'm working on ...
Hey Rob, As I understand you want to apply Doctrine criteria on the simple PHP array - you can't. Criteria can be applied on Doctrine's ArrayCollection only. Or instead of returning the result array in your repository ...
... see that the `dir` option of your managers is wrong. Your entities should be isolated into their own folder. I recommend you to read this piece of documentation https://symfony.com/doc/current/doctrine/multiple_entity_managers.html but if you have more questions feel free to ask us :) Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hey Avraham M. If you want to cache queries, you can use Doctrine cache to do it but I don't recommend it because you would have to purge the cache whenever your object changes and it can be very problematic. What you ...
MolloKhan
MolloKhan
Read Full Comment
... course) - the updatedAt part would likely require to hack the value in (assuming no setter) on some doctrine event, just like I did with the other thing in my previous question. If the answer is no - what would be the recommended way to set both createdAt and updatedAt for entity marked as ApIResource?
Robert Z.
Robert Z.
Read Full Comment
... episode where Ryan explains it: https://symfonycasts.com/screencast/symfony3-doctrine-relations/param-conversion Or, you can read the docs: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html Cheers!
MolloKhan
MolloKhan
Read Full Comment