Two episodes down! Booya! And we are super ready to put our new skills to the test! It's finally time to make up app come alive by using Doctrine to connect to a database.
Doctrine is an amazing ORM that works great with Symfony and is super powerful. It also has a reputation for being hard to learn and for making you write a lot of code. But that's changing! Thanks to some recent improvements and Symfony Flex, working with Doctrine has never been easier or more rewarding. So, let's get started!
Creating (and updating) Entities with make:entity
Generating & using migrations
Inserting new data
Fetching & Querying for data
Doctrine Repositories
Custom queries and the query builder
Fixtures (Dummy data) using Faker
Relationships & Associations
Overview
Syllabus
- 01. Installing Doctrine
- 02. Creating an Entity Class
- 03. Database Migrations
- 04. Saving Entities
- 05. Querying for Data!
- 06. Fun with Twig Extensions!
- 07. ago Filter with KnpTimeBundle
- 08. Service Subscriber: Lazy Performance
- 09. All about Entity Repositories
- 10. Custom Queries
- 11. Query Logic Re-use & Shortcuts
- 12. Updating an Entity with New Fields
- 13. Updating an Entity
- 14. Fixtures: Seeding Dummy Data!
- 15. Using Faker for Seeding Data
- 16. Sluggable & other Wonderful Behaviors
- 17. When Migrations Fail
- 18. Activating Timestampable
Taught by
Ryan Weaver