< Doctrine DBAL and ORM

Defining Entities in Doctrine ORM

Doctrine

Show in app

Description

Defining entities in the Doctrine ORM framework and reflecting them in the persistence layer (e.g.: database).

Goals

I know

  • the different types of relationships between entities
  • what collections are used for
  • that collections are necessary when defining "to-many" relationships
  • different types of identifier creation strategies

I can

  • define an entity class
  • define mappings for entities with a mapping type of my choice
  • use a collection to define a "to-many" relationship
  • use the Doctrine ORM CLI to validate and generate a schema

Maintainer

Grégoire Paris Doctrine