Persistence in PHP with Doctrine ORM

Kévin Dunglas

  • 出版商: Packt Publishing
  • 出版日期: 2013-12-22
  • 售價: $1,370
  • 貴賓價: 9.5$1,302
  • 語言: 英文
  • 頁數: 114
  • 裝訂: Paperback
  • ISBN: 1782164103
  • ISBN-13: 9781782164104
  • 相關分類: PHP
  • 下單後立即進貨 (約3~4週)

商品描述

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.

Overview

  • Develop a fully functional Doctrine-backed web application
  • Demonstrate aspects of Doctrine using code samples
  • Generate a database schema from your PHP classes

In Detail

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 the 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 the 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 the Doctrine ORM is the book you.

What you will learn from this book

  • Install Doctrine through the Composer dependency manager
  • Configure Doctrine Command Line Tools
  • Learn to manage relations between entities with different association types
  • Create data fixtures, a custom entity repository, and native SQL queries
  • Master the query builder to generate DQL queries
  • Get started with inheritance and lifecycle events

Approach

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.

Who this book is written for

This book is primarily intended for PHP developers and architects who want to increase their skills in the field of Persistence and ORM to map the data they are working on to objects they are using in programming. Basic knowledge of databases and PDO and working knowledge of PHP namespaces is a prerequisite.

商品描述(中文翻譯)

本書專為希望透過更好地理解持久化和ORM來提升自己技能的PHP開發人員和架構師而設計。您將通過解釋和代碼示例學習,這些示例與完整的Web應用程序開發相關聯。

概述:
- 開發一個完全功能的基於Doctrine的Web應用程序
- 通過代碼示例展示Doctrine的各個方面
- 從PHP類生成數據庫模式

詳細內容:
Doctrine 2已成為PHP最受歡迎的現代持久化系統。它可以作為獨立系統使用,也可以與Symfony 2一起使用,並且與流行的框架非常好地集成。它允許您輕鬆檢索PHP對象圖,提供一個強大的面向對象的查詢語言(DQL),一個數據庫模式生成工具,並支持數據庫遷移。它高效,抽象了流行的DBMS,並支持PHP 5.3功能。

Doctrine是現代PHP應用程序必不可少的工具。

《使用Doctrine ORM進行PHP持久化》是一本實用的、實戰指南,詳細描述了使用Doctrine驅動的Web應用程序的完整創建過程。深入解釋了ORM的核心功能,並通過有用、明確且可重用的代碼示例進行了說明。

《使用Doctrine ORM進行PHP持久化》以清晰詳細的方式解釋了您需要了解的有關Doctrine的一切。

從通過Composer安裝ORM到掌握原生查詢等高級功能,本書全面介紹了Doctrine的強大功能。您還將學習到大量的映射註釋,創建關聯,並從PHP類生成數據庫模式。您還將了解如何編寫數據固定裝置,創建自定義實體存儲庫,以及發出高級DQL查詢。最後,它將教您如何使用繼承,編寫原生查詢,以及使用內置的生命周期事件。如果您想為PHP應用程序使用強大的持久化系統,那麼《使用Doctrine ORM進行PHP持久化》就是您的首選。

本書將教您:
- 通過Composer依賴管理器安裝Doctrine
- 配置Doctrine命令行工具
- 學習管理實體之間不同關聯類型的關係
- 創建數據固定裝置、自定義實體存儲庫和原生SQL查詢
- 掌握查詢生成器以生成DQL查詢
- 入門繼承和生命周期事件

方法:
《使用Doctrine ORM進行PHP持久化》是一本簡潔、快速且專注的指南,用於構建具有原生查詢和生命周期回調等高級功能的博客引擎。

本書適合對持久化和ORM感興趣的PHP開發人員和架構師,以將他們正在處理的數據映射到他們在編程中使用的對象。需要具備基本的數據庫和PDO知識,以及熟悉PHP命名空間的工作知識。