... a new doctrine/persistence package).
I've just updated the code download so that it should work out of the box. Thanks for the report!
Cheers!
...
!!
!! Attempted to load interface "ObjectManager" from namespace "Doctrine\Common\Persistence".
!! Did you forget a "use" statement for another namespace?
!!
!!
!!
``
Here is the complete install log: https://pastebin.com/7SAr7Rmc ...
Hi Abdelkarim,
If you go to this URL: https://api-platform.com/docs/core/filters/#doctrine-orm-and-mongodb-odm-filters and click on the YAML tab for its examples, you will find ways to do this using yaml. Hope it helps! ...
Yea, at least those are the reasons that I can think of where you can benefit from using events. A good example of it is Doctrine, it allows you to hook into basically any step of the lifecycle of an entity ...
Hey,
If you run any other command related to Doctrine and the database like `doctrine:schema:update` does it work? What Database are you using? Double check your connection string and if you're using 127.0.0.1 as the domain, try changing it to localhost
Cheers! ...
...
The difference is you became responsible for persisting/removing data. But in reality, you just decorate the existing DataPersisterInterface and delegate this to doctrine.
Is that correct?
Hey @Rayan,
Yes ^^ !, if we had doctrine no reasons to implement a custom resolver, totally agree :)
Otherwise, I liked the use-case you gave me! Cool! (with your accent in the videos) so it reminds me of: assuming ...
Hi, thanks for this tutorial!
Doctrine transport is good no need to install more dependencies.
But I'm wondering about one thing message under my logs, I think each 1 minute (not sure):
```
SELECT m.* FROM messenger_messages m WHERE (m.delivered_at is null OR
m.delivered_at < ?) AND (m.available_at ...
So if I see this right zenstruck/foundry acts as a replacement for the hautelook/AliceBundle dependency which is currently incompatible with api-platform 2.5.7? And is there a reason why zenstruck/foundry and the doctrine-fixtures-bundle isn't just a require-dev dependency? ...
... setup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* PDO should have some drivers installed (currently available: none)
> Install PDO drivers (mandatory for Doctrine).
Hi, thanks for a great course, now I am yet more thrilled about Symfony! Still, I have one question: should I wait for the Symfony 5 Doctrine Relations tutorial (if you are planning one) or start with the one for Symfony 4? Are there many differences regarding these two versions? ...
... `doctrine.dbal.url` key. Example
```
doctrine:
dbal:
url: '%env(resolve:DATABASE_URL)%_test'
```
Does it makes sense?
Cheers!
... > And this is the second reason you might decide to map the inverse side of the relation:
it's required if you're doing a JOIN in this direction.
That's not true. As of Doctrine 2.3 or 2.4 (I don't remember anymore but ...
... Thx Diego.
I've made one in tag.php too and still get the users. So there has to be more!? May be a setting from Mastering Doctrine Relations! that I haven't watched yet.
With choice_label it is the same. Why uses Symfony the table users?
Hey Guido!
Not in this tutorial - DTO's aren't really related to Doctrine - they are more important depending on *how* you want to use them - like DTO's in the form component or DTO's with API Platform. What is your interest with DTO's?
Cheers! ...
There is a method.
ste had described it in answer at https://stackoverflow.com/questions/57455725/how-to-disable-foreign-key-constraint-when-using-doctrine-generate-migration
I'm exploring another way - materialized ...
Hi Dominik!
I wanted to apologize for never replying to this! Your comment somehow got stuck as "pending" and we missed it :/. If you're still having issues, let me know. It definitely looks weird as `symfony/orm-pack` requires `doctrine/orm` so that package absolutely *should* already be installed.
Cheers! ...
Hmm, you can ignore that deprecation :D
or, another solution is to manually define the name of all the tables you have problems with
```
/**
* @ORM\Table(name="table2_test")
*/
class SomeEntity
```
The naming strategy is only used when Doctrine have to give it a name to your tables/fields
Cheers! ...
Thanks a lot Ryan!
The Criteria were indeed what I was looking for. Tbh, I recently saw it in the doctrine course but I totally must have forgotten!
Anyways, thanks for the nice description and your super-fast reply, I appreciate !
Best!
Wannes ...
I think i found it.
It's the `vendor\api-platform\core\src\Bridge\Doctrine\Orm\SubresourceDataProvider.php`. If i change it back to what it was before the composer update it all works again.
It turns out that api-pack ...
2726
Doctrine
Filter Results