... using messenger with an Api Platform application (`https://api-platform.com/docs/core/messenger/`).
I do this together with doctrine.
What i want to know is this:
When a client calls an url on my api that generates lots ...
... \Question". Check your Doctrine configuration to make sure it is configured to load this entity’s metadata.
What should I do to continue?
Thanks in advance!
... slugs and avoid such as "?", "#", etc. Thanks to the bundles, there're already a couple of third-party libs which help with generating a slug for Doctrine entities. Probably, the most popular is the "StofDoctrineExtensionsBundle" which has a lot of DoctrineExtensions's features includes a Sluggable one. So check it out.
Cheers!
... still dont understand why but that is why above code did not work so for anyone having similar issue with Gedmo this might be the solution to set priority.
Based on docs https://symfony.com/doc/current/doctrine ...
Hey Dmitriy,
IIRC there's no something similar to Doctrine batch processing in Messenger, but probably instead of trying to dispatch like you suggested you better create a different "batch" message? Something like ...
... the version of the DB you're trying to connect, and make sure you set up the server version correctly in your Doctrine config file, or most probably in your DATABASE_URL value.
I hope that helps!
Cheers!
... when you remove an answer, you do so by setting its `question` field to `null`, and that is where the "orphan removal" feature of Doctrine kicks in. It will detect those cases and remove the record entirely.
I hope it is more clear now :)
... - Doctrine should even create that when you run doctrine:database:create :).
But anyways, one tricky thing with sqlite is that it doesn't have a fancy "mysql" command line tool. There a few GUI tools for visualizing an ...
... making your `items` on your DTO an `ArrayCollection` from Doctrine to test that theory (so that both sides are a type of "collection" object).
Cheers!
... Doctrine-Entity).
Then I had a DataTransformer, which took the ApiResource, which acted as Input-DTO, used the IDs to make a Database-Query and returned a collection of Entities.
Now, I tried to do the same with ...
... about writing complex custom DB queries leveraging Doctrine while UnitOfWork is more about operations and hooks. But yeah, I understand you! The topic around UnitOfWork is also interesting and complex, but it would be a ...
... (see: [phpstan/phpstan issue 150](https://github.com/phpstan/phpstan-doctrine/issues/150)) on this approach, but no solution or possibility to customize had been proposed.
**Update:**
I added this now into ...
Hi there,
Thanks for the great tutorial! I've followed along but tried a slightly different route, by creating the entities via doctrine using ```bin/console doctrine:generate:entity``` and choosing yml as the mapping ...
... ('c.sourceOrigin', 'so');
// ...otherCode
```
Error message :
`[Syntax Error] line 0, col 587: Error: Expected Doctrine\\ORM\\Query\\Lexer::T_CLOSE_PARENTHESIS, got 'as'` ...
... field, use it in your custom query ...."*
Do you think is also possible to use the "*company*" or similar field to prefix table names, including **User **tabel, as stated at https://www.doctrine-project.org/projects/doctrine-orm/en/2.16/cookbook/sql-table-prefixes.html ??
Thank you in advance for your help
bah... my bad =) sorry for that. Yeah, that is a pretty tricky situation. However, there still are some ways to go.
For example you can use request event
```
namespace App\EventSubscriber;
use Doctrine\ORM ...
Hey @Fedale!
That's a great question. I can think of 2 options, and they're both totally fine imo:
* 1) A doctrine listener/subscriber as you were mentioning. These are a bit magic and they're hard to debug if you ...
... production machines. There are functions (up and down) filled automaticaly with code but
how can I tell doctrine to rollback the last migration? i.e. to use the down method of the actual migration?
I tried things like ...
... exactly what I want -- to control the starting offset, not the page.
Doctrine\Orm\Extension\PaginationExtension,php
[$offset, $limit] = $pagination;
$offset = $context['filters']['start'];
More ...
... more "hipster" now :) You can read about the difference in the docs: https://www.doctrine-project.org/projects/doctrine-dbal/en/current/reference/types.html#datetime-immutable
Cheers!
2725
Doctrine
Filter Results