2704 search results for Doctrine
Learn Symfony 5
Go Pro with Doctrine Queries (Legacy)
Filters
Learn Symfony 6
Go Pro with Doctrine Queries
Filters: Automatically Modify Queries
Learn Symfony 2
... hour or so, we're going to learn what a service is, find out more about the core Symfony services, and create a few of our own. In Doctrine, we'll create some Doctrine associations, including ManyToOne and ManyToMany ...
Upgrading & What's New in Symfony 5!
... Let's look at the latest list of deprecated code. Hmm... there's a lot of stuff related to Doctrine. Ok: two tricky things are happening in the Doctrine world right now that make upgrading to Symfony 5... a bit more ...
Learn Symfony 3
Symfony 3: Doctrine & the Database
We described the genus table to Doctrine via annotations, but this table doesn't exist yet. No worries - Doctrine can create it for us! And actually, we don't even have a database yet. Doctrine can also handle this ...
... important changes are under "Services aliases". Previously, if you wanted to get the doctrine service, you could use the RegistryInterface type-hint for autowiring. Now you should use ManagerRegistry. Where do we use ...
Yo guys! Time to level-up our project in a big way. I mean, big. This series is all about an incredible library called Dog-trine. Wait, that's not right - it's Doctrine. But anyways, Doctrine is kinda like a dog: a dog ...
Starting in Symfony2: Course 1 (2.4+)
... Doctrine and is in charge of saving objects and fetching them back out. To get the entity manager, first grab a service from the container called doctrine and call getManager on it: Saving is a two-step process: persist ...
Doctrine, Symfony 6 & the Database
One of the coolest, but maybe most surprising things about Doctrine, is that it wants you to pretend like the database doesn't exist! Yea, instead of thinking about tables and columns, Doctrine wants us to think about ...
... story. When you call flush(), Doctrine loops over all of the entity objects that it "knows about" and "saves" them. And that "save" is smart. If Doctrine determines that an entity has not been saved yet, it will execute an ...
Doctrine Collections: ManyToMany, Forms & other Complex Relations
... then only two scientists! Yes! But now click the Doctrine icon down in the web debug toolbar to see how the queries look on this page. This is really interesting: we have one query that's repeated many times: it selects all ...
Doctrine, Symfony & the Database
We have a beautiful entity class and, thanks to the migrations that we just executed, we have a corresponding question table in the database. Time to insert some data! One of the key philosophies of Doctrine is that it ...
API Platform Part 2: Security
... good thing. Hmm. Don't worry, I'll tell you which one I would use and why. Our options include an API Platform event listener - a topic we haven't talked about yet - an API Platform data persister or a Doctrine event ...
Symfony 3 Security: Beautiful Authentication, Powerful Authorization
... text password, encrypt it through the bcrypt algorithm and store that on the password property. How? The best way is to set the plain-text password on the User and encode it automatically via a Doctrine listener when it ...