... this is the MOST common mistake). But, you have the wrong class. There are multiple classes from different libraries called cache. You want:
```
use Doctrine\Common\Cache\Cache;
```
If you look closely, the error ...
When I run composer install during the installation of course files I get this :
`Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package easycorp/easy-log ...
... class has some "magic" in it: if you call an undefined method on it that starts with "findBy" it tries to parse it and create a query from it. So Doctrine basically tries to make a query to find by "orderedByNewest = the ...
...
- the main dev tools (maker, debug toolbar, etc.) and commands
- useful recipes (doctrine, api, encore, bootstrap, yarn, etc.) with "--dev" or not.
- the proper order to install all that (if there is one)
That could be very useful :)
... the in-memory enqueued messages.
I'm not 100% sure about that. If you dump each container then you can confirm if they are the same object or not. In the case they're not, I think a good solution would be to use the `doctrine` transport and call the `getMessageCount()` method on it to assert if your message was dispatched.
Cheers!
Hi,
Thanks for the speedy response.
doctrine/annotations was (and is) installed.
With the fourth argument present in the call to the JSON serializer...
`
return $this->json($user, 200 ...
Hi there!
You *should* get the first failure :). I got it too - I talk about it here: https://knpuniversity.com/screencast/doctrine-relations/join-column-relation-fixtures#when-migrations-go-wrong.
The second command ...
... user.id. Thats exactly the missing link. I suppose these relations have been set in the course " Mastering Doctrine Relations". Till now I did not make this one. I guess I should catch up ;-)
That's the explanation why ...
... last episode breaks open closed principle. Every new message coming from external system will couse a need to edit this class and add another "case". What about ambitious course about SOLID? Why to go with Doctrine course that will be very similar to the Doctrine's courses in SF4, SF3 tutorials?
... 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.
... 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!
... 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!
... 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 ...
... 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!
... 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` ...
... 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 ...
... 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!
... 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 ...
2725
Doctrine
Filter Results