2709 search results for Doctrine

Hey Axa! Normally you don't have to worry about indexes, Doctrine will take care for you. Unless you already have a running app, and you already configured you DB, in that case, I think you will have to specify your indexes for your tables, but I'm not 100% sure about this (I'm just guessing) Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
... //knpuniversity.com/screencast/symfony-doctrine/dummy-data. Basically, we recommend using the older version for following the tutorial :). Cheers!
weaverryan
weaverryan
Read Full Comment
Hey Dennis E. Yeah, ManyToMay relationships are not used very often, but when you have a solid use case (like in your case), you just go for it :) Have you watched our tutorial about doctrine collections? I believe you will find it useful https://knpuniversity.com/screencast/collections Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
... ="discr", type="string") * @DiscriminatorMap({"person" = "Person", "employee" = "Employee"}) */ ``` You can follow the steps here: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/inheritance-mapping.html#single-table-inheritance Cheers!
MolloKhan
MolloKhan
Read Full Comment
@ 4:00 when you set Collection, it went WAY too fast, that you actually used phpStorm Auto-complete to add use statement for Doctrine\Common\Collection. Am I the only one, that thinks these tutoials sometimes write too ...
CISVHenriksen
CISVHenriksen
Read Full Comment
Hey guys, quick doctrine migration question. Is there a way to specify executing the last created diff? If there are old diffs in my DoctrineMigrations directory and I don't delete them it tries to run those before the latest diff. Is that normal behavior? ...
You would only have to type-hint your argument, something like this: ``` use Doctrine\ORM\EntityManager ... class ReportManager { public function __construct(EntityManager $em ...
MolloKhan
MolloKhan
Read Full Comment
... /questions/46342803/doctrine-reusable-criteria-in-entity-and-repository-with-joins Maybe someone has done this before or can give me a better solution to this.
This one is : [Doctrine\Common\Annotations\AnnotationException] You have to enable opcache.load_comments=1 or zend_optimizerplus.load_comments=1. Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler ...
Tabla Mihai
Tabla Mihai
Read Full Comment
Hi, I have tried to create de SubFamily Entity manually and a got this when I try bin/console doctrine:fixtures:load. My error: [Doctrine\ORM\ORMInvalidArgumentException] Expected value of ...
Matias Rouaux
Matias Rouaux
Read Full Comment
This is weird indeed, makes me wonder a few fundamental things Did you update the DataBase schema ? $ php bin/console doctrine:schema:update --force Did you change anything about how Doctrine reads Entity metadata ...
MolloKhan
MolloKhan
Read Full Comment
Awesome :). The thumnbnailFile property in your entity will NOT be persisted to Doctrine. So, it will just be a normal property with NO @ORM\Column annotation. It exists *only* to help you work with your form. It's kind of an annoying detail, but that's how it should work. Cheers! ...
weaverryan
weaverryan
Read Full Comment
Hey Jost! Hahaha, don't worry, this time is much easier, you have a tiny problem, your method is called "getGenusScientists" with an "S" at the end, and Doctrine is expecting it without an "s", is a small problem for plural words, just remove the "s" and everything will work just fine Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hey Richard , Take a look at my comment here: https://knpuniversity.com/screencast/collections/clean-url-slugs#comment-3432539079 The main idea is do not use Doctrine migrations for such a big and complex tasks like populating slugs in production where you have a lot of entities. Use one-time Symfony commands for it. Cheers! ...
Hey Dennis E.! Can you show me the error message ? I believe you just need to change your "setParameter", instead of passing the categoryId, just pass the whole object, if your relationship is correctly setup, Doctrine already knows what to do. Have a nice day :) ...
MolloKhan
MolloKhan
Read Full Comment
Hi guys!!! I have the same problem as argy_13. But when I try to fix this problem (1 - composer require --dev phpdocumentor/phpdocumentor or 2 - composer require doctrine/annotations) it didn't help me (( I still have ...
Евгений Явгель
Евгений Явгель
Read Full Comment
Hi Ryan, How do we handle the loading of image file fixtures (or any up-loadable files)? For example I have a product entity which contains images files, and they are uploaded and handled via a doctrine listener. Is ...
I get this same error and I am using use Doctrine\Common\Cache\Cache; CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Notice: Undefined property: AppBundle\Service ...
robspijkerman
robspijkerman
Read Full Comment
Thanks Ryan! I will try your recommendation. All your courses use Doctrine and I keep thinking if I need to learn it because I have used SQL for many years and I don't see the point to learn an ORM adding more complexity when I don't need it (at least apparently). ...
Doh! Had an error in the UserRepository:refreshUser() function: I was returning the old $user not the new $refreshedUser obect. Well, at least I learned something about the inner workings of Symfony & Doctrine while ...