Hello there!
I got a weird problem I don't know how to solve. Working on Symfony's project in version 6.2, and PHP 8.2 after running `composer require doctrine` errors occur:
```
- symfony/orm-pack[v1.0.0 ...
Hello
I have tried the updated as well but still i am getting following errors -
C:\wamp64\www\Symfony001\Symfony-Doctrine>composer require stof/doctrine-extensions-bundle
Using version ^1.6 for stof/doctrine ...
... Doctrine\config/packages/doctrine.yaml" does not contain valid YAML: A Y
AML file cannot contain tabs as indentation in "C:\\wamp64\\www\\Symfony001\\Symfony-Doctrine\\config/packages/doct
rine.yaml" at line 8 (near ...
... ^7.2.9|^8.0 and do a composer update I get a fail on doctrine/inflector 1.3.* requires php ^7.1.
I've updated then updated it so that it is looking for doctrine/inflector ^1.3, the composer update then runs but when it ...
Hey Krzysztof K.!
Hmm, really good question :). As the StackOverflow shows, it "seems" simple enough... though there are some details to think about:
1) As I understand it, Doctrine doesn't really care whether an ...
Hey mehdi!
Wow, that's a really great point you made! :)
So, the idea of the "owning" side is completely a "Doctrine" concept. And the "owning" side *is* GenusNote, because it is the side where the foreign key column ...
in composer I have:
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.0.*",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2 ...
Hey jian su
Doctrine by default doesn't have a replace function, but you can create your own DQL functions, actually this guy already done it: http://stackoverflow.com/a/21652988
You can read more information about ...
Yo Vlad!
There is a slight difference between the Doctrine event subscriber and the event subscriber used by the JMSSerializerBundle. They philosophically do the same thing, but under the hood, Doctrine uses *its ...
Hey Vlad!
Hmm, interesting! I don't have experience doing this, but in theory, I would be surprised if it's not supported. The error specifically is coming from Doctrine (not the paginator library itself), so changing ...
...
```
"require": {
"php": "^7.1.3",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"doctrine/orm": "^2.5",
"friendsofsymfony/user-bundle": "~2.1 ...
... personal setup, I just use MySQL, uncomment that and comment the "postgresql"-line. Then fill it with data, for me it looked like this:
`
###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine ...
I did not follow these courses because they are archived:
Symfony 4 > Stellar Development with Symfony 4
Symfony 4 > Symfony 4 Fundamentals: Services, Config & Environments
Symfony 4 > Doctrine & the ...
Hey Tomik,
Unfortunately, no any plans to release it soon, so probably if you watched the Doctrine tutorial for Symfony 5 course: https://symfonycasts.com/screencast/symfony-doctrine - I'd recommend you to go with the ...
Anyone know if there's a way to have alice 'override' a primary key?
@weaverryan is right, Alice _simply_ hydrate entities, so the behaviour is implied by Doctrine. In fact, you probably have a primary key with an id ...
... ..and the update of vendors code, run by the composer, seem to break one of migrations:
`13:05:47 CRITICAL [php] Fatal Error: Class 'Doctrine\DBAL\Migrations\AbstractMigration' not found ["exception" => Symfony ...
... -vvv at the end and I got this:
"Exception trace:
at /Users/tautvydas/PhpstormProjects/Lesson_3/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/Loader.php:170
Doctrine\Common\DataFixtures\Loader ...
... // play.php
// ...
$em = $container->get('doctrine')
->getEntityManager()
;
The code above from the script is deprecated, use the original code or follow the video:
$em = $container->get('doctrine')->getManager(); ...
Do you think we should also inject Doctrine in the controller with `RegistryInterface $doctrine` instead of $this->getDoctrine()?
This is my last question hehe, great course btw ...
hmm weird it works with root user without password
seems the parseDatabaseUrl function https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/DriverManager.php doesn't like that url string. ...
2725
Doctrine
Filter Results