更新时间:2021-07-21 18:04:30
coverpage
Persistence in PHP with Doctrine ORM
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
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
Understanding Doctrine Mapping Types
Creating the database schema
Installing Data fixtures
Creating a simple UI
Chapter 3. Associations
Getting started with the Doctrine associations
Understanding the @ManyToOne and @OneToMany annotations with the comment system
Understanding the @ManyToMany annotation with tags
Chapter 4. Building Queries
Understanding DQL
Using the entity repositories
Getting started with Query Builder
Filtering by tag
Counting comments
Chapter 5. Going Further
Implementing inheritance
Getting started with events
Writing native queries
Index