Heya weaverryan !
Tried alone first, pure doctrine extensions, installation was a bit rough, but went ok! tho couldnt get translatable to work, then went with StofDE and got it working, believe it or not, was touger ...
... https://symfonycasts.com/screencast/symfony4-doctrine/twig-extension
Or you can check the Symfony's Twig docs about it.
Cheers!
... config/packages/dev directories, and put this in the config/packages/dev/doctrine.yaml
```
doctrine:
dbal:
server_version: 'mysql-5.7.32'```
is that correct?
... removeEntity was just in the way due to the setEntity(null) issue on required relation.
Expected behaviour (IMO) was for doctrine to complain about cascade persist (2:49) or tell me a required function is missing, but instead it ignored the addEntity method all together and threw no errors.
... doctrine error described in this video. It just worked as expected without having to provide the "@id" field. I am using PATCH instead of PUT for my cheeses endpoint. I'm just curious if this behavior is because I am using a PATCH request, or if this is a bug fix or feature implemented in a recent version of API Platform.
... name but I've read that doctrine uses reflection to create the objects so the constructor should be irrelevant, right?
I don't even understand what it means by chain configured namespaces but it is AppFixtures.php that shows up in the exception stack trace.
... cache:clear [KO]
and Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class "Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle" not found in C:\siteEcommerceApema\demo\envoiMail\start ...
I am trying to understand this method. It seems to me, and please correct me if I am wrong that this is a way to specify a database view (as in CREATE VIEW ... in SQL) using the Doctrine ORM. I have a situation where ...
... (dispatch to 1, then dispatch to 2 and on success dispaches to 3 and 4), but in async only the first message is handled succesfully. The message of the 2nd dispatch does not even endup on the queue (Doctrine). Doesn't this work on Symfony 6 ? Should I change to a workflow setup?
... explicitly use `ParamConverter` annotation. In this example we have an ID property for Post entity, but placeholder's name is `post_id`, so we need to use a custom mapping here (`options={"id" = "post_id"}`).
Search for 'mapping' on Doctrine Converter page to find more mapping examples.
Cheers!
... like following:
`
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\CheeseListingRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CheeseListingRepository ...
Hey Patryk W.
That's a good question. I'm not sure if MySql/Doctrine has a feature for that purpose, so, what I think you can do is to use `git grep` across your project (or projects that uses the same database) to ...
... or edit, I get this error.
Expected argument of type
"?App\Entity\WalletProvider",
"Doctrine\Common\Collections\ArrayCollection" given at property path
"walletProvider".
it happens when I try to add anything with ...
... "ApiPlatform\Core\Api\FilterInterface". Did you forget a use statement?"
...
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter;
...
This 'use' line is grey in IDE, looks like it doesn't see it.
#[ApiFilter ...
... Which did end up working!
`
if ($pageName === 'new') {
$product = new Product();
$serviceTypes = $this->doctrine->getRepository(ServiceType::class)->findAll();
foreach ...
... https://symfonycasts.com/screencast/doctrine-relations/complex-many-to-many
So, what you need to do is to create another entity that will work as an intermediate table for your other 2 entities, you can add as many fields you want to that new entity class, and then, create an EasyAdmin CRUD controller to handle it.
Cheers!
Hi! Great tutorial so far :)
I have a question: I have a many to many relation, with additional data, like here ( https://symfonycasts.com/screencast/doctrine-relations/many-to-many-saving )
I cannot (yet) figure out ...
... not using traditional relationships where everything is bidirectional (although doctrine seems to think uni is fine), any chance someone knows/can confirm, that unidirectional relationships do not possess this functionality?
... Hi,
I'm getting an error, when running `./vendor/bin/phpunit --filter testPOSTCreateBattle`:
There was 1 error:
1) AppBundle\Controller\Api\BattleControllerTest::testPOSTCreateBattle
Doctrine\DBAL\Exception ...
... operation, API Platform/Doctrine queries the database for your User. That User object will have `null` for its `plainPassword` property, since that is not a persisted property. Then, something (I'm not sure exactly what ...
2725
Doctrine
Filter Results