After the first two courses, we're going to turn the volume to 11! Yup, it's database time!
This tutorial is all about Doctrine: a powerful ORM that will allow us to talk to a database from inside our Symfony app. With the power of PHP 8 & tools inside Symfony, Doctrine is not only the most powerful ORM in PHP, it's also a joy to work with. You are going to love it!
Booting a database with Docker via the Flex recipe system
Database config
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 Foundry
Relationships & Associations
SELECT * FROM doctrine_knowledge.
Overview
Syllabus
- 01. Installing Doctrine
- 02. docker-compose & Exposed Ports
- 03. Docker & Environment Variables
- 04. The "symfony console" Command & server_version
- 05. Entity Class
- 06. Migrations
- 07. Adding new Properties
- 08. Persisting to the Database
- 09. Querying the Database (coming soon)
- 10. Custom Entity Methods & Twig Magic (coming soon)
- 11. The Query Builder (coming soon)
- 12. Show Page (coming soon)
- 13. Param Converter (coming soon)
- 14. Request (coming soon)
- 15. Update (coming soon)
- 16. Rich Model (coming soon)
- 17. Timestampable (coming soon)
- 18. Sluggable (coming soon)
- 19. Fixtures (coming soon)
- 20. Foundry (coming soon)
- 21. Pagination (coming soon)
- 22. Forever Scroll (coming soon)
Taught by
Ryan Weaver