2.4 Working With Entities
In this lesson we’re going to create and define an entity, which you can think of as a model. You’ll learn how to link the entity to Doctrine, the Object Relational Mapper (ORM) you’ll use for managing it. Then you’ll set validation for your entity's properties, which you’ll be using later in the course as you create new books. You’ll also learn how to generate the needed getters, setters, database, and table schema using the console. Let's get started!