Деталі електронної книги

Persistence in PHP with Doctrine ORM. This book is designed for PHP developers and architects who want to modernize their skills through better understanding of Persistence and ORM. You'll learn through explanations and code samples, all tied to the full development of a web application

Persistence in PHP with Doctrine ORM. This book is designed for PHP developers and architects who want to modernize their skills through better understanding of Persistence and ORM. You'll learn through explanations and code samples, all tied to the full development of a web application

K?É!(C)vin Dunglas, Kevin Dunglas

Eлектронна книга
Doctrine 2 has become the most popular modern persistence system for PHP. It can either be used as a standalone system or can be distributed with Symfony 2, and it also integrates very well with popular frameworks. It allows you to easily retrieve PHP object graphs, provides a powerful object-oriented query language called DQL, a database schema generator tool, and supports database migration. It is efficient, abstracts popular DBMS, and supports PHP 5.3 features.

Doctrine is a must-have for modern PHP applications.

Persistence in PHP with Doctrine ORM is a practical, hands-on guide that describes the full creation process of a web application powered by Doctrine. Core features of the ORM are explained in depth and illustrated by useful, explicit, and reusable code samples.

Persistence in PHP with Doctrine ORM explains everything you need to know to get started with Doctrine in a clear and detailed manner.

From installing the ORM through Composer to mastering advanced features such as native queries, this book is a full overview of the power of Doctrine. You will also learn a bunch of mapping annotations, create associations, and generate database schemas from PHP classes. You will also see how to write data fixtures, create custom entity repositories, and issue advanced DQL queries. Finally it will teach you to play with inheritance, write native queries, and use built-in lifecycle events. If you want to use a powerful persistence system for your PHP application, Persistence in PHP with Doctrine ORM is the book you.
  • Persistence in PHP with Doctrine ORM
    • Table of Contents
    • Persistence in PHP with Doctrine ORM
    • Credits
    • About the Author
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Downloading the example code
        • Errata
        • Piracy
        • Questions
    • 1. Getting Started with Doctrine 2
      • Prerequisites
      • Understanding the concepts behind Doctrine
      • Creating a project structure
      • Installing Composer
      • Installing Doctrine
      • Bootstrapping the app
      • Using Doctrines Entity Manager
      • Configuring Doctrine command-line tools
      • Summary
    • 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 annotations
        • Diving 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
    • 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 class
        • Updating 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
    • 4. Building Queries
      • Understanding DQL
      • Using the entity repositories
        • Creating custom entity repositories
      • Getting started with Query Builder
      • Filtering by tag
      • Counting comments
      • Summary
    • 5. Going Further
      • Implementing 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
  • Назва: Persistence in PHP with Doctrine ORM. This book is designed for PHP developers and architects who want to modernize their skills through better understanding of Persistence and ORM. You'll learn through explanations and code samples, all tied to the full development of a web application
  • Автор: K?É!(C)vin Dunglas, Kevin Dunglas
  • Оригінальна назва: Persistence in PHP with Doctrine ORM. This book is designed for PHP developers and architects who want to modernize their skills through better understanding of Persistence and ORM. You'll learn through explanations and code samples, all tied to the full development of a web application.
  • ISBN: 9781782164111, 9781782164111
  • Дата видання: 2013-12-18
  • Формат: Eлектронна книга
  • Ідентифікатор видання: e_3bmp
  • Видавець: Packt Publishing