1000 search results

When you do : ``` symfony console doctrine:query:sql 'SELECT * FROM starship WHERE id = 75' ``` I cannt see part_id is 1. Even when I try to do the query myself, I dont see part_id anywhere... Did I miss something?
Hey Cameron, This is actually from doctrine/orm package. This might be an indirect deprecation for other packages that uses doctrine/orm in their dependecies including Foundry like you said. You can just ignore it for now and it should be fixed by package maintainers…
Getting old but while https://github.com/doctrine/migrations/issues/1163 is still a thing; dump-schema does not add FK's. It might be advisable to use `symfony console doctrine:migrations:diff --from-empty-schema` instead of `symfony console doctrine:migrations:dump-schema`.
Hey |mention:75363| , IMO the Doctrine DB prefixes feature is a completely standalone feature that is implemented via an event listener, so in theory yes, you can use that in this case if you need it. Unfortunately, I have never used that personally, so can…
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