1000 search results

It is good to know that Doctrine docs are helpful to you. By the way, we give for free the chapter script (including code blocks) below the video, so you can follow our tutorials at least in that way Cheers!
MolloKhan
MolloKhan
Read Full Comment
I'm gettting this error: - doctrine/migrations[3.2.0, ..., 3.3.0] require symfony/console ^3.4 || ^4.4.16 || ^5.0 -> found symfony/console[v3.4.0-BETA1, ..., 3.4.x-dev, v4.4.16, ..., 4.4.x-dev, v5…
am trying to have symfony doctrine generate my database with Swedish collation (otherwise the sorting of characters åäö gets all messed up). I put this in my config file, but it seems to have no effect. doctrine: dbal: url: '%env(resolve:DATABASE_URL)%' charset: utf8mb4…
MattWelander
MattWelander
Read Full Comment
Is there support for object versioning in Doctrine ORM? I have a case where I'm every now and then hit by "race conditions" i.e. simultaneous requests to the server will create unwanted behaviour, like the logical outline below ``` SQL find all entities where…
MattWelander
MattWelander
Read Full Comment
Hi, What domain model is used in Doctrine ? Anemic or Rich ? Thank for reply in advance
Solved - need to add -->" `symfony console doctrine:query:sql 'SELECT * FROM "user"' `
Hi, when trying to runsymfony console doctrine:migrations:migrate I keep getting this as error: [notice] Migrating up to DoctrineMigrations\Version20210907192620 [error] Migration DoctrineMigrations\Version20210902182514 failed during Execution. Error: "An exception occurred while executing 'ALTER TABLE answer RENAME INDEX idx_9474526c1e27f6bf TO IDX_DADD4A251E27F6BF': SQLSTATE…
- symfony/maker-bundle v1.11.6 requires doctrine/inflector ^1.2 -> found doctrine/inflector[v1.2.0, ..., 1.4.4] but the package is fixed to 2.0.4 (lock file version) by a partial update and that version does not match. Make sure…
…When I run symfony console doctrine:migrations:migrate I have an error with this message " There is no active transaction" (In Connection.php line 1761:) I use MySql 5.7 with docker-compose I use the command : symfony console doctrine:schema:create and it's…
Hi victor I guess the doctrine migrations are different. In Laravel, they write classes for migrations, and when you run migrations, then those classes are compiled to SQL Queries, and then runs against the currently defined database connection. It can be pgsql or mysql or…
I glad to see new video for Doctrine. Thnak you! ;) BTW, if it possible , Could you add pause/unpause functionality video for toch screens? I mean , like for desctop PC, when I can click in the middle of video frame. For Desktop PC I see…
Hey Shubham, The "dinosaurs" property is a Doctrine's ArrayCollection... but yeah, you can think about it like about an array on steroids, and the first() method returns the first value of that array or null if the array is empty, that's why we…
…mature orm framerowk like Doctrine doesn't support having attributes on a many-to-many relationship. To me that's enough to dismiss Doctrine as garbage and start looking for alternatives. What is disturbing is that Symfony seems to "promote" Doctrine as the go-to…
Matteo S.
Matteo S.
Read Full Comment
Hi i am trying to install doctrine for work with docker but when i install orm (composer require orm) then orm install successfully but command prompt not work correctly. and for this reason i could not create database. when i am try this command php…
hello then I try to ./bin/console doctrine:fixtures:load I got this error :-( PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: syntax error, unexpected '$manager' (T_VARIABLE) in /Users/jorgfluck/docker/login/src/DataFixtures/UserFixture.php:21 Stack trace: #0 [internal function]: Symfony…
Jörg daniel F.
Jörg daniel F.
Read Full Comment
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
MolloKhan
MolloKhan
Read Full Comment
Whats the difference between make:migration and doctrine:migrations:diff ?
…native Doctrine pagination, so that's a different thing. Yes, both solves pagination problem, but in this video we use a third-party bundle for this called knplabs/knp-paginator-bundle . It already has more features and easier to use than Doctrine pagination. Doctrine pagination…
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.
Hello guys, when I run : symfony console doctrine:database:create I have 3 red messages : An exception occurred in driver: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (n…
Albert G.
Albert G.
Read Full Comment