3

Click here to load reader

Important Features of Doctrine Framework

Embed Size (px)

DESCRIPTION

Doctrine is the best PHP based framework. Made up of finite set of PHP libraries, this platform provides a wide range of functionalities. It includes a gamut of major features that make this framework wonderful for modern times web development.

Citation preview

Page 1: Important Features of Doctrine Framework

Pauline Taylor

Important Features of Doctrine Framework

Object Relational Mapping is a programming technique in computer software, for converting data between incompatible type systems in object-oriented programming languages. As this creates virtual object database, which can powerfully used from within the programming language.

One of the major features of Doctrine apart from ORM is DQL. It is the option to write database queries in a proprietary object oriented SQL dialect, which is very well known as Doctrine Query Language that is DQL.

Some of the Major Features of Doctrine Framework:

● To start any of the development project, the low level configuration is needed, which is the first features of Doctrine. This framework has the power to generate object classes from an existing database, and the developer can then assign relations and add custom functionality to the generated classes. With this programming script, there is no need to generate or maintain complex XML database schemes, as noticed in other frameworks.

Important Features of Doctrine Framework

Page 2: Important Features of Doctrine Framework

Pauline Taylor

● One more important feature of Doctrine is the quality to selectively write database queries in an object oriented (OO) SQL dialect called DQL (Doctrine Query Language) inspired by Hibernate's HQL. Secondarily, the QueryBuilder class (Doctrine_Query in Doctrine 1.x) ensures one to construct queries through a fluent interface. These interfaces provide developers with powerful options to SQL which maintain flexibility and still allow for switching of database back-ends, without requiring any code duplication.

● With Doctrine its not always necessary to write queries expressly because this PHP framework performs joins and fetches related objects automatically. Thus, the positive point is that the small projects can be explicitly constructed without writing queries.

● Doctrine offers support for hooks, where hooks are the methods that can validate or modify input and output. It also supports event listeners to structure business related logic.

● It provides column aggregation inheritance (I.e similar elements can be stored in one database table, with one type of column declaring the subtype of the particular object – the correct subclass is always returned when the query is done.)

● Doctrine is a type of caching framework that makes use of the several backends like memcached, SQLite or APC.

● It offers ACID (a set of properties that guarantee database transactions to be reliable) transactions.

● Helps in Database migrations

● The best feature of Doctrine is a “compile” function to combine numerous PHP files of the framework into one. This is to avoid the low performance status, which is usually incurred by including several PHP files of a framework.

Important Features of Doctrine Framework

Page 3: Important Features of Doctrine Framework

Pauline Taylor

Thus, these numerous features make Doctrine the best PHP framework to be used in the modern times.

Log on to HPP to know more about doctrine framework

Important Features of Doctrine Framework