2725 search results for Doctrine

... ", inversedBy="categories") */ private $filters; public function __construct() { $this->filters = new \Doctrine\Common\Collections\ArrayCollection(); } public function addFilter(\AppBundle\Entity\Filter $filter ...
Dan Costinel
Dan Costinel
Read Full Comment
... component since 3.1, but it wasn't available when we recorded this tutorial). But, the Doctrine library *does* have a caching library. The DoctrineCacheBundle integrates the Doctrine cache library into Symfony. We could have ...
weaverryan
weaverryan
Read Full Comment
... deploy to production: when you run `doctrine:migrations:migrate`, Doctrine will look at the `migration_versions` table in your production database to determine exactly which migration files have already been executed and ...
weaverryan
weaverryan
Read Full Comment
Yo Terry! Oh yea, it's super magic :). Here's how it works behind the scenes: 1) We query for a Genus. 2) Doctrine populates all of the normal (non-relationship) fields onto the Genus object 3) Since we have only ...
weaverryan
weaverryan
Read Full Comment
Hey Johan! Yea, this is a classic problem :). So, by default in Doctrine, when Doctrine setups of your relationship in the database, it doesn't add *any* "ON DELETE" behavior. This means that if you try to delete a row ...
weaverryan
weaverryan
Read Full Comment
... Hello o/ Having a really hard time thinking of this dql query. I posted on SO also [ http://stackoverflow.com/questions/38722752/doctrine-left-join-on-unrelated-entity ] Basically I'm looking for a way to return ...
Caim Astraea
Caim Astraea
Read Full Comment
... \Service; use Symfony\Component\DependencyInjection\ContainerInterface as Container; //use Doctrine\ORM\EntityManager as EntityManager; //gave deprecation notice, profiler suggested to change to below and the ...
MattWelander
MattWelander
Read Full Comment
... ['@service_container', '@doctrine.orm.entity_manager']``` GlobalHelper starts out like this: ``` namespace App\Service; use Symfony\Component\DependencyInjection\ContainerInterface as Container; //use Doctrine\ORM\EntityManager ...
MattWelander
MattWelander
Read Full Comment
... will avoid the race condition of handling a single message more than one time. If you *are* going to have so many workers, I would recommend using RabbitMQ/AMQP as your transport, instead of Doctrine. Using Doctrine with ...
weaverryan
weaverryan
Read Full Comment
... have an openapi specs and i want to generate php classes to handle the request. The request will probably make crud operations of many entities and not only one so i can't just diretly use doctrine models. how do i i ...
weaverryan
weaverryan
Read Full Comment
Thank you for this amazing guide! I've went through your tutorials in the following order: 1) Stellar Development with Symfony 4 2) Symfony 4 Fundamentals: Services, Config & Environments 3) Doctrine & the Database 4 ...
denizgelion
denizgelion
Read Full Comment
... Doctrine tried to query for the Account object with id 48 (because it only does this query lazily, when you actually need the data - and I think it also does the query when you try to delete), it was gone! That doesn't make ...
weaverryan
weaverryan
Read Full Comment
... --repo.packagist.org/provider-doctrine$annotations.json from cache Reading C:/Users//AppData/Local/Composer/repo/https---repo.packagist.org/provider-doctrine$cache.json from cache Reading C:/Users//AppData/Local/Composer/repo ...
Алексей Скоробогатов
Алексей Скоробогатов
Read Full Comment
... be much appreciated ! Here is code for User entity: ``` namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\ArrayCollection; use Symfony ...
Hello Integration Tests

... another class from Doctrine. If you look, to instantiate it, we need to pass a ManagerRegistry from Doctrine. And if you hold "command" or "control" and click into this... and go to the base class, it gets complicated. It ...

7:41
Completely Custom Field via a Data Provider

... don't need to think about this system because API Platform has a built-in Doctrine data provider that handles all of it for us. But if we want to load some extra data, a custom data provider is the key. In the src ...

9:19
Decorating Data Persisters vs Context Builders

... that. Let's do some digging: run bin/console debug:container and search for api_platform. This shows all of the services from ApiPlatform... which is a bunch. Search for "doctrine". Ok: a metadata factory and... ah ...

8:54
Serialization Groups

... of a Doctrine error, you may have gotten a validation error. That's due to a new feature where Doctrine database constraints can automatically be used to add validation. So, if you see a validation error, awesome ...

9:34
File Upload Field in a Form

... people create this property on their entity, just to make the form work. They don't persist this property to the database with Doctrine... so the idea works, but I don't love it. Instead, we'll use a trick that we talked a ...

9:09
Querying for Data

... learn how to write custom queries soon. Above this line, just to help my editor, I'll tell it that this is an Article object: And... hold on, that's important! When you query for something, Doctrine returns objects ...

9:16