Summary

We now have a minimal but working blog app! Thanks to Doctrine, persisting, retrieving, and removing data to a database has never been so easy.

We have learned how to use annotations to map entity classes to database tables and rows, we generated a database schema without typing a line of SQL, we created fixtures and we used the Entity Manager to synchronize data with the database.

In the next chapter, we will learn how to map and manage One-To-One, One-To-Many/Many-To-One, and Many-To-Many associations between entities.

Get Persistence in PHP with Doctrine ORM now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.