Doctrine ORM is a PHP ORM. While Doctrine 1.2 uses the Active Record pattern, Doctrine ORM 2 and up uses the Data Mapper pattern. The Doctrine project is a collection of open source libraries and tools for dealing with database abstraction and Object-Relational Mapping written in PHP.
Doctrine ORM
Doctrine ORM is an object-relational mapper (orm) for php 5.4+ (starting with 2.6 version php 7.1+). The Doctrine project is a collection of open source libraries and tools for dealing with database abstraction layer (dbal) and Object-Relational Mapping written in PHP. One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (dql).
Differences between Doctrine 1.2 and Doctrine 2.0.0
- Doctrine 1.2 implements ActiveRecord design while Doctrine 2.0.0 implements DataMapper design
- Doctrine 2.0.0 requires PHP 5.3 or newer and uses its benefits like namespaces.
- Doctrine 2.0.0 is divided into set of smaller subprojects: Doctrine Commons, Doctrine DBAL, Doctrine ORM (for RDBMS) and Doctrine ODM (for MongoDB).
- Doctrine 2.0.0 is much faster.
- Doctrine 2.0.0 supports annotations.
Releases
- The latest stable release of Doctrine 2 is version 2.6.3
- Source code : https://github.com/doctrine/orm
Information
If you have questions about Doctrine 1.2, please use the doctrine-1.2 tag instead.
Documentation
The documentation consists of:
- Tutorials: Getting started articles
- The Reference Guide: The main source of documentation for the project.
- The Cookbook: A collection of simple and advanced recipes for using Doctrine.
- An API for Doctrine