2726 search results for Doctrine

Hey Dhrubajyoti D. Many thanks for your feedback! We are so happy that you like it and we will do our best to keep it simple and understandable! BTW! I registered your request about Native SQL queries in doctrine so keep watching some day it will be recorded. :) Cheers! ...
Thanks. Yes that works fine. Great tutorial, i just watched the whole seris. and I must the older tutorials also because the concepts works on symfony 5. Your teaching are so simple to understand and follow. JavaScript serise is also great. Please, make some tutorial on using native sql and cte sql query in doctrine ...
Dhrubajyoti D.
Dhrubajyoti D.
Read Full Comment
Hey @Ariel! Excellent question! Yes, definitely :). We will update this soon for Symfony 5, but Doctrine relations have not changed in... really any way that I can think of between Symfony 4 and 5. This tutorial will serve you well. And of course, if you have any doubts, you can ask us any questions. Cheers! ...
weaverryan
weaverryan
Read Full Comment
... Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "DoctrineCacheBundle" from namespace "Doctrine\Bundle\DoctrineCacheBundle". ...
Christopher S.
Christopher S.
Read Full Comment
Why not use UUID and ULID from Symfony https://symfony.com/blog/new-in-symfony-5-2-doctrine-types-for-uuid-and-ulid ? And what is the difference between uuids and ulids and which one you encourage to go for? I started a new project and I am using ulids, I havent found alot of docs online. ...
OK. I got it! Thanks! What's the best practice? Call manually every time before a "persist"? Or can this be done automatically (e.g. via lifecycle callbacks)? But then a API call would be validated twice (by Doctrine and API Platform, right?). ...
Christian H.
Christian H.
Read Full Comment
Hey Nirav R. I'm afraid you cannot do that, Doctrine needs to instantiate objects for you, so it doesn't get confused about if it's a new or old object. What you can do is to store the object's id on the database, and then, query for it Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
there The description of the track says: After this track, what will my level be? ... You'll be able to use all of Symfony's major pieces - Doctrine, forms, security, etc - to build real web applications ... But I haven't found any tutorials about forms in the courses of the track. Are there any? Thx. ...
... Hey Oda That's weird! I can think of a couple of reasons: 1) You may have installed a very old version of the Doctrine bundle, so perhaps you could upgrade it and try again 2) Something weird happened when installing your vendors, try removing the vendor directory and run `composer install` Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hey Jorg, Hm, could you tell me what command exactly do you run? :) Btw, what Symfony version do you have? Looks like the stof/doctrine-extensions-bundle^1.6 requires symfony/config ^4.4 || ^5.2 - if you have a lower version, you would probably need to upgrade symfony/config first. I hope this helps! Cheers! ...
... DoctrineBundle or possibly doctrine/persistence. I'll take a look at this and get the download fixed up for others :). Cheers!
weaverryan
weaverryan
Read Full Comment
Thought I posted about some errors I was getting out of the box on this. Has this been tested as of late? At least one of the errors I'm getting seems to be some sort of Doctrine issue. I'm using Docker for the database otherwise it's strictly following the course code install. ...
Hey Farry7, Both doing the same thing - create a Doctrine migration. But the "make:migration" command is from Symfony's MakerBundle, and "doctrine:migrations:diff" is from the DoctrineMigrationBundle. So, you don't ...
... Uooo! I didn't remember the doctrine criteria.... =( . ¿Do you know any other solutions? I leave the code, in case it helps someone. ``` /** * @return Collection * @Groups({"province:available:read ...
JuanLuisGarciaBorrego
JuanLuisGarciaBorrego
Read Full Comment
... understand the issue. ` namespace App\Entity; use App\Repository\MeetstaatRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=MeetstaatRepository::class) */ class Meetstaat { ... `
Hi, i was wondering if you had an update on your previous reply to Jay. I would love to do this course, but I'm not able to because of the outdated code. Any estimate when an updated course is available? Learning Symfony is not complete without Doctrine Queries ...
... Symfony 5 > Doctrine, Symfony & the Database. I can't remember that you created BaseFixtures there. So what is the best way for me to continue, you think?
Hey @Farry7! You're right - it starts to guess the field type based on the Doctrine "type" that the property has. But, you can absolutely override this in your form. Basically, I let the form system "guess", and when ...
weaverryan
weaverryan
Read Full Comment
Hey mikesmit1992! Traits work perfectly fine with Doctrine :). So you could move the properties+getters & setters into a trait and then use that trait from your entity (or from multiple entities). You are also free to ...
weaverryan
weaverryan
Read Full Comment
... I had to create the stof_doctrine_extensions.yaml file manually as stof/doctrine-extensions-bundle didn't install with the options as in the lesson.