DOC2W1 | Deep Dive into Doctrine 2

  • In this workshop you will learn about the Object Relational Mapper (ORM) Doctrine2 and how it works internally. We will start with the basic features, object to table mappings, updating algorithms and continue with associations, lazy-loading, inheritance and querying. At the end you will have a clear and deeper understanding of how Doctrine ticks, which is a key requirement for using it productively in your PHP projects.
  • Prerequisites

    Good knowledge of PHP and OOP
  • Goals

    This workshop allows to learn the key concepts of the Doctrine2 Object Relational Mapper (ORM) tool to map PHP entity objects to your relational database schemas. The training will first cover basic topics such as bootstrapping and configuring Doctrine 2, mapping entity objects to a database relational schema, manipulating records or querying the database. In a second part, you'll also learn how to use entity associations, lazy loading as well as entity inheritance mapping.

Full program

<h3>Doctrine Object Relational Mapper</h3>

  <li>Bootstrapping and configuring Doctrine 2</li>
  <li>Discovering the Doctrine 2 layers (Common, DBAL, ORM)</li>
  <li>Configuring a connection to a MySQL / MariaDB database</li>
  <li>Mapping PHP entity classes to a MySQL database relational schema</li>
  <li>Mapping entity relationships (One-to-One, One-to-Many, Many-to-One, Many-to-Many)</li>
  <li>Configuring unique constraints and foreign key constraints</li>
  <li>Persisting PHP entities to the database</li>
  <li>Removing PHP entities from the database</li>
  <li>Querying the database with custom SQL/DQL queries</li>
  <li>Refactoring custom SQL/DQL queries to Doctrine repository objects</li>
  <li>Configuring lazy-loading and entity inheritance mapping</li>
  • Duration

    7 hour(s)
  • Level

  • Available languages

  • Available countries

From €690.00
No session scheduled

No session is scheduled for this course. However we organize tailored training courses: contact us for more informations!