2708 search results for Doctrine

Custom Repository Class

... this idea of custom entity methods later. At the bottom, there's one more link: question.slug. Done! Doctrine makes it easy to query for data and Twig makes it easy to render. Go team! At the browser, refresh and ...

8:10
Finding Issues via the Call Graph

... function before it jumps into Doctrine. So the problem in our code is something around this getUserActivityText() stuff. Let's open up this template: main/sighting_show.html.twig - at templates/main/sighting_show.html.twig ...

6:50
ManyToMany Joins When to Avoid ManyToMany

... alias: The a.tags refers to the tags property on Article. And because Doctrine knows that this is a ManyToMany relationship, it knows how to join all the way over to tag. To actually fetch the tag data, use ->addSelect ...

5:44
Query Joins Solving the N+1 Problem

... explain to Doctrine how to join - we don't need an ON article.id = comment.article_id. Nah, Doctrine can figure that out on its own. The second argument - a - will be the "alias" for Article for the rest of the query ...

9:01
OrderBy fetch EXTRA_LAZY

... property: Add a new annotation: @ORM\OrderBy() with {"createdAt" = "DESC"}: That's it! Move over and, refresh! Brilliant! The newest comments are on top. This actually changed how Doctrine queries for the related comments ...

6:23
ManyToMany The Inverse Side of the Relationship

Our goal is clear: list all of the genuses studied by this User. Back in our Doctrine Relations tutorial, we learned that every relationship has two different sides: a mapping, or owning side, and an inverse side. In ...

6:45
Entity Security

... class. That sounds like a lot of work, so let’s just use the doctrine:generate:entity app/console command: php app/console doctrine:generate:entity For entity shortcut name, use UserBundle:User. Remember, Doctrine uses ...

4:32
... hautelook/alice-bundle 2.7.2 - Conclusion: don't install hautelook/alice-bundle v2.7.1 - Conclusion: remove doctrine/persistence 1.1.1 - Installation request for hautelook/alice-bundle ^2.7 -> satisfiable by ...
julien_bonnier
julien_bonnier
Read Full Comment
... I don't have Doctrine installed, but I can't install any version because it gives me incompatibilities with Symfony or Composer. ``` Jonatan@MacBook-Pro-de-Jon start % composer require doctrine/doctrine-migrations ...
Hey Jorg, Hm, looks like you have doctrine/orm installed that is locked on 2.8.3 and that requires to have doctrine/common 3.0.3 or higher. To install the doctrine/common:^2.7 you should either downgrade the doctrine ...
Hi weaverryan I'm using the code download from this course. It looks like you sorta got it right with the conflicting versions of doctrine/doctrine-migrations-bundle and doctrine/migrations. The versions were/are ...
... specific way. Here is an abbreviated version of my `docker-compose.yml` file, which came (like in the tutorial) from the DoctrineBundle recipe after installing Doctrine: ``` services: ###> doctrine/doctrine-bundle ...
weaverryan
weaverryan
Read Full Comment
... \Validator\Mapping\Loader\AutoMappingTrait" not found while loading "Symfony\Bridge\Doctrine\Validator\DoctrineLoader". in /Users/ashatou/Work (Local)/2. Personal/11. Learning/Symfony/SymfonyCast/code-symfony5-doctrine/code ...
Hi! I have a problem, I would really love to use Urlizer, but it seems outdated now. When I do " composer require gedmo/doctrine-extensions", it gives me a lot of errors like: " - gedmo/doctrine-extensions v2.4.0 ...
yes, I think autogenerated namespace is wrong, in a (start) folder from Symfony Security tutorials AbstractMigration.php live in two places: ..\vendor\doctrine\migrations\lib\Doctrine\DBAL\Migrations ...
I got the stack trace (but not the sql query). It looks like it has to do with the ORMpurger not deleting fixtures correctly. ``` Exception trace: at /home/cam/php/robotGL2/vendor/doctrine/dbal/src/Driver/API ...
... \doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:43 Stack trace: #0 C:\Bitnami\wampstack-7.3.11-0\apache2\htdocs\rest\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php(43): PDO->__construct('sqlite:C ...
juantreses
juantreses
Read Full Comment
... from `/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php Do you have an idea what could have happened? ` > ./bin/console messenger:consume Which transports/receivers do you want to consume ...
... ", "symfony/symfony": "3.1.*", "doctrine/orm": "^2.5", "doctrine/doctrine-bundle": "^1.6", "doctrine/doctrine-cache-bundle": "^1.2", "symfony/swiftmailer-bundle": "^2.3", "symfony ...
... and Symfony are running and other doctrine commands seem to work docker-composer.yml ``` version: '3' services: ###> doctrine/doctrine-bundle ### database: image: postgres:${POSTGRES_VERSION:-14}-alpine ...