Persistence in PHP with Doctrine ORM : build a model layer of your PHP applications successfully, using Doctrine ORM /
Persistence in PHP with the Doctrine ORM is a concise, fast, and focused guide to build a blog engine with advanced features such as native queries and lifecycle callbacks. This book is primarily intended for PHP developers and architects who want to increase their skills in the field of Persistence...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Pub.,
2013.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1:Getting Started with Doctrine 2; Prerequisites; Understanding the concepts behind Doctrine; Creating a project structure; Installing Composer; Installing Doctrine; Bootstrapping the app; Using Doctrine's Entity Manager; Configuring Doctrine command-line tools; Summary; Chapter 2:Entities and Mapping Information; Creating the Entity class; Generating getters and setters; Mapping with Doctrine annotations; Knowing about the @Entity annotation.
- Understanding the @Table, @Index, and @UniqueConstraint annotationsDiving into the @Column annotation; Knowing about the @Id and @GeneratedValue annotations; Using other annotations; Understanding Doctrine Mapping Types; Creating the database schema; Installing Data fixtures; Creating a simple UI; Listing posts; Creating and editing posts; Deleting posts; Summary; Chapter 3:Associations; Getting started with the Doctrine associations; Understanding the @ManyToOne and @OneToMany annotations with the comment system; Creating the Comment entity class (owning side).
- Adding the inverse side to the Post entity classUpdating the database schema; Adding fixtures for the comments; Listing and creating comments; Updating the index; Understanding the @ManyToMany annotation with tags; Creating the Tag entity class (inverse side); Updating the Post entity class (owning side); Updating the schema again; Creating tag fixtures; Managing the tags of a post; Summary; Chapter 4:Building Queries; Understanding DQL; Using the entity repositories; Creating custom entity repositories; Getting started with Query Builder; Filtering by tag; Counting comments; Summary.
- Chapter 5:Going FurtherImplementing inheritance; Using Mapped Superclasses; Using Single Table Inheritance; Using Class Table Inheritance; Getting started with events; Lifecycle callbacks; Knowing about event listeners and event subscribers; Writing native queries; The NativeQuery class; Doctrine DBAL; Summary; Index.