2709 search results for Doctrine

... Hey Ryan! I'm back with another brain itcher that's been consuming most of my afternoon. I'm curios why doctrine truncates my select query when using multiple join selects with queryBuilder. My query is as follows ...
... trying to filter the *activity* results themselves... using the openingHours as information for that. If THAT is true, then what you want is a custom Doctrine filter. A doctrine filter is basically the combination of (A ...
weaverryan
weaverryan
Read Full Comment
... " DATABASE_URL="mysql://root:password@127.0.0.1:3306/main?serverVersion=5.7" #DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8" ###< doctrine/doctrine-bundle ### ``` #docker ...
... Doctrine is tracking a specific Tech and can't replace it with another one loaded by Ajax. Did anyone have already done such a thing? Is there a Doctrine ID for tracking (I saw #id while dumping data to compare) ? Or ...
... most part, functionality that you will need to build "by hand". But I have a few pieces of advice: A) Since creating a CRUD is a well-known thing to do with Doctrine, I would model my code off of a normal Doctrine CRUD ...
weaverryan
weaverryan
Read Full Comment
... running mysql migrations in PHP 8. It just fails with a message saying that "There is no active transaction". If you're using PHP 8 and MySQL, you get this. In that case, you need to `composer up doctrine/migrations` (it ...
weaverryan
weaverryan
Read Full Comment
... debug: '%kernel.debug%' strict_variables: '%kernel.debug%' # Doctrine Configuration doctrine: dbal: driver: pdo_mysql host: '%database_host%' port: '%database_port%' dbname ...
Angela F.
Angela F.
Read Full Comment
... "$registry" of method "__construct()" references interface "Symfony\Bridge\ !! Doctrine\RegistryInterface" but no such service exists. Try changing the type-hint to "Doctrine\Persistence\ManagerRegistry" instead. I ...
... UnitOfWork. Unless you have some customization, the class that should be handling that is this one: https://github.com/api-platform/core/blob/master/src/Bridge/Doctrine/Orm/ItemDataProvider.php#L68 - I would put some dump ...
weaverryan
weaverryan
Read Full Comment
... you have a situation where an entity HAS an id, but Doctrine tries to INSERT it instead of updating, the reason is that this User object has (somehow) become "detached" from Doctrine's EntityManager. *Why* that his ...
weaverryan
weaverryan
Read Full Comment
Hey Mike, Ah, I see! Yeah, it might be tricky, we do cover some simple things with LIKE query in a few tutorials like: https://symfonycasts.com/screencast/doctrine ...
... the "criteria") article. The problem is, Doctrine doesn't have the Cast() function. After hours of trying and googling, I found out, I have to register my custom DQL Function. And thanks god, there is already one, which ...
... per the docs/this video: ` $pagination = $paginator->paginate( $qb, /* query NOT result */ $request->query->getInt('page', 1)/*page number*/, 24/*limit per page*/ ); ` When I try to visit the page, Doctrine ...
... /doctrine/doctrine2/blob/6dc46e78ccf4fe75c80884e7abe41b811f2204b6/lib/Doctrine/ORM/QueryBuilder.php#L942-L945 Second, in general, the difference between an innerJoin and a leftJoin deals with whether you are joining over to ...
weaverryan
weaverryan
Read Full Comment
Sorry, I should have been more clear. I had this problem with security.request_matcher.***** in my business project, not in this tutorial. However, I was curious and I've just executed bin/console debug:config doctrine ...
... configuration contains this: ``` doctrine: dbal: url: '%env(resolve:DATABASE_URL)%' ``` When you use this config, it means that, at runtime, Symfony actually reads the DATABASE_URL environment variable ...
weaverryan
weaverryan
Read Full Comment
... point 3) I should see the details of the comercial entity by that time, and if I check the month in step 4) I should see the details by that time. The idea is like taking "snapshots" of the doctrine by months and be ...
Hotspot 3
Hotspot 3
Read Full Comment
Finding Eliminating Deprecations

... and the version it was deprecated in. But we don't see that down here. And, at the end, it references an issue from the doctrine/orm repository. Ah! This deprecation isn't coming from Symfony: it's coming from doctrine ...

6:16
Writable Collection via the PropertyAccessor

... (). I won't dive too deeply into why we can't have a setter, but it relates to the fact that we need to set the owning side of the Doctrine relationship. We talk about this in our Doctrine relations tutorial. The point is ...

6:29
Resetting the Database

... Foundry. Run: If you watched our Doctrine tutorial, you'll remember Foundry! But you may not know about its testing superpowers... which is where it really shines. The main point of this library is to help create dummy data ...

4:47