Hey Carlos!
Happy new year!
Yea, I see the issue. First, it's not the Symfony inflector we're dealing with - but the Doctrine one... not that this helps us really (just noting that for clarity). Inside API Platform, I ...
... >getNotes() doesn't require the extra query: https://knpuniversity.com/screencast/doctrine-queries/joins-reduce-queries
That *technically* answers your question... but it's not worth it for me :).
Cheers!
first, thank you for sharing this easy way to manage Collections in a form.
I come across an "issue" or may be I don't understand one mechanism: how does Doctrine know what items from your collection are new or updates ...
... other? It's not an easy question to answer. If what we need to do in our hook is something "pure" and "low level" (like making some calculation, logging something, etc), then I like the doctrine listeners. But if what ...
...
`# config/packages/test/doctrine.yaml
doctrine:
dbal:
url: '%env(resolve:DATABASE_TEST_URL)%'`
And as I showed above the env for the test environment is indeed exposed. Maybe there's somewhere else I need to define something? Because it looks to me like I have option A going on but something somewhere is missing it.
... update a user and change a key in my settings ("language" to "fr"), Symfony (Doctrine) tries to create a new entity (But runs into an Exception due to Unique-Key on `user_id` from OneToOne) instead of updating the existing ...
... see that doctrine transport table has a field called 'available_at' it seems to be related to it. What do you thing?
One last idea is to have the handler sending a message to the event bus if the notification is not yet ...
... allow SQL injections
You're 100% correct. And the UserProvider (the Doctrine user provider) DOES protect against SQL injections by using the normal prepared statement queries. So, you're covered without thinking about it ...
... good to fix, but it's not critical. Well, for example, if we're talking about this "PDO driver" warning - you may ignore it for now as we're not going to cover Doctrine and database in this course. In later courses we will ...
... Doctrine, but I will have an unimplemented repository interface (eg `FooRepository`) in my bundle and I'll use `registerForAutoConfiguration()` on it and the App's implementation (eg `InMemoryFooRepository`) will appear in ...
I sometimes find that this doesn't always automatically tag implemented classes. For some reason, I seem to have no problem with any of my Repository interfaces (that have nothing to do with Doctrine), but I end up ...
... creating a mini-container that has *some* services in it. You can learn about the idea here: https://symfonycasts.com/screencast/symfony4-doctrine/service-subscriber
> but both methods don't appear to be necessary to ...
... is an entity in Doctrine or not) and then use it again in `resolve` to fetch the repository and make the query.
That's a quick answer to a not-so-easy task. If you're interested, let me know if you need more details :).
Cheers!
... doctrine entitylistener as I learned a whilo ago from this video. Only difference, I use postPersist.
I am now experimenting a bit with phpmailer since i want to sent a mail to the user right after he registered for ...
... work with PHP 7.3 and 7.4.
In this case, this tutorial is (unfortunately) quite old - so old that we can't update its dependencies without making *major* changes :/. The reason the tutorial is old is that the Doctrine ...
Hi. I try to install orm-bundle in symfony 5 but all the time I have this error:
`!! In Configuration.php line 304:
!!
!! The doctrine/orm package is required when the doctrine.orm config is set.
`
My composer ...
... to join and select it when you query for the User: https://knpuniversity.com/screencast/doctrine-queries/joins-reduce-queries (of course, this happens in the security layer, so you would need to likely extend your user provider to control this query).
Cheers!
... performance issues with your site before reaching for it.
Regarding database connections, I think if the sub-request happens within the current request (not using ESI/HTTP caching), the sub-request would share the doctrine connection (but I'm not 100% sure on this).
... class work even though it's not hooked up with Doctrine.
That should be it - but let me know if you run into trouble :).
Cheers!
... unnecessarily loads the base, but above all implies latency in the treatments
I know that doctrine transport is amazing for development experience. But I'm wondring is symfony core team already solved the's problems ...
2725
Doctrine
Filter Results