Hey @Antsen
There are Doctrine extensions that allows you to create translatable entities also some bundles which helps organising it. Unfortunately can't advice any guidance or best practice yet.
Cheers ...
Hey Sherri,
Yeah, the latest v1.6.0 of the bundle requires Symfony 5.2, but you can install the previous one v1.5.0 instead that fits for ^5.0. You can do it:
$ composer require "stof/doctrine-extensions-bundle:^1.5.0"
Cheers! ...
Hey Quntun El Andaluz Trtinoh
That IS a good question and BTW doctrine extensions has a mechanism for it. Try to use SoftDeleteable behavior, you can find docs here and I think a good example here
Cheers! ...
The extension bundle should take care of it. It works via Doctrine listeners. The problem is the `other` connection configuration is just an example, you should put it on the "default" one (unless you're using multiple databases)
Cheers! ...
I believe you forgot to enable the doctrine extension. Here you can see how to do it https://symfony.com/doc/current/bundles/StofDoctrineExtensionsBundle/configuration.html#activate-the-extensions-you-want ...
... If you get "[Doctrine\DBAL\Exception\DriverException] An exception occurred in driver: could not find driver", simply uncomment extension=pdo_sqlite in php.ini in your php installation folder (by deleting ";"). ...
And what about https://www.doctrine-project.org/projects/doctrine-orm/en/2.8/tutorials/pagination.html
I think this tutorial have to be updated with provided reference because it out of date. ...
Hey Farry7
How are you rendering the template? Remember that you need to pass in the `$questions` variable just like in this code block https://symfonycasts.com/screencast/symfony-doctrine/more-queries#codeblock-9226231640
Cheers! ...
... There's a situation where a Doctrine event on PrePersist might not work with GraphQL? The data persister isn't triggered by my fixtures for my tests so, here's another difference I guess.
Hey there ,
Doctrine encourage to take over and control transaction demarcation ourself! So how to deal with it? Can you tell me a "good" use-case when to you use it?
Big thanks! ...
Hey Gaetano S.
The `createListQueryBuilder` is not a Doctrine method, it's a EasyAdmin method which creates the query builder for the "List" view. I believe the new name for that method is `createIndexQueryBuilder()`
Cheers! ...
... What's the default value of query_cache_driver, and is it better/faster to set it to apcu or redis ! By default, does doctrine set the result of repository queries under cache ?
Hello, I think that you have a typo here
// src/Yoda/EventBundle/Entity/Event.php
// ...
use Doctrine\Common\Collections\ArrayCollection;
public function __construct()
{
$this->events = new ArrayCollection();
}
----------------------------
$this->attendees = new ArrayCollection(); is the correct right? ...
Just for reference, I talked to MolloKhan on a different thread and (actually) he solved his own issue. The answer was basically storing things in the session or using Doctrine cache (to avoid queries on each page) :) ...
Yes, you *should* get an error - I got one too :). I talk about it here: https://knpuniversity.com/screencast/doctrine-relations/join-column-relation-fixtures#when-migrations-go-wrong
Cheers! ...
Hey Joe L.
We added the `TimestampableEntity` trait to the Comment class in the first video, you may have lost it but here it is :)
https://symfonycasts.com/screencast/doctrine-relations/comment-entity?playAt=237
Cheers! ...
Hello,
I guess I installed mySQL now I'm getting a different error
[Doctrine\DBAL\Exception\ConnectionException]
An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
some help anyone please :)
thank you ...
Hey Nathan
Looks like you got outdated code, can you re-download it and try again? if you will get same notice again, than share please your php and `doctrine/orm` versions
Cheers! ...
acually I DO SEE!
vendor/symfony/messenger/Transport/Doctrine/Connection.php:line 281
```
private function createAvailableMessagesQueryBuilder(): QueryBuilder
{
$now = new \DateTime ...
Hey Amit!
Thanks for the note! I know this error - it IS indeed a problem with an older version of doctrine/annotations. We'll see if we can upgrade it in the course code :).
Cheers! ...
2726
Doctrine
Filter Results