Back to course

Introduction to Doctrine ORM

Symfony 0 to Hero: The Complete 2026 Guide

What is an ORM?

Object-Relational Mapping (ORM) lets you talk to your database using PHP objects instead of SQL.

  • Entity: A PHP class representing a table.
  • Repository: A class for querying the database.
  • EntityManager: The tool to save/delete objects.