Doctrine

Doctrine
Doctrine
Тип

ORM

Написана на

PHP

Операционная система

кроссплатформенный

Последняя версия

2.2.0 (29 января 2012)

Лицензия

GNU Lesser General Public License

Сайт

http://www.doctrine-project.org

Doctrineобъектно-реляционный проектор (ORM) для PHP 5.3.0+, который базируется на слое абстракции доступа к БД (DBAL). Одной из ключевых возможностей Doctrine является запись запросов к БД на собственном объектно-ориентированном диалекте SQL, называемый DQL (Doctrine Query Language) и базирующийся на идеях HQL (Hibernate Query Language).

Пример использования

Doctrine следует паттерну Active Record для работы с данными. Для примера, если программист хочет создать пользователя в базе данных, он может больше не использовать SQL, а написать следующий PHP код:

 $user = new User();
 $user->name = "john";
 $user->password = "doe";
 $user->save();
 echo "The user with id $user->id has been saved.";

Литература

  • Jonathan H. Wage, Konsta Vesterinen Doctrine ORM for PHP. — Sensio SA, 2009. — 522 p. — ISBN 978-2918390039

Ссылки


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Полезное


Смотреть что такое "Doctrine" в других словарях:

  • doctrine — [ dɔktrin ] n. f. • 1160 « enseignement »; lat. doctrina, de docere « enseigner » 1 ♦ Ensemble de notions qu on affirme être vraies et par lesquelles on prétend fournir une interprétation des faits, orienter ou diriger l action humaine. ⇒ dogme,… …   Encyclopédie Universelle

  • doctrine — doc·trine / däk trən/ n: a principle established through judicial decisions compare law, precedent doc·tri·nal / trə nəl/ adj Merriam Webster’s Dictionary of Law. Merriam Webster …   Law dictionary

  • doctrine — DOCTRINE. s. f. Savoir, érudition. Grande doctrine. Profonde doctrine. Doctrine consommée. Cet homme a beaucoup de doctrine. Ce livre est plein de doctrine. [b]f♛/b] Il se prend aussi pour Maximes, sentimens, enseignemens. Bonne, saine doctrine.… …   Dictionnaire de l'Académie Française 1798

  • doctrine — Doctrine. s. f. Sçavoir, erudition. Grande doctrine. profonde doctrine. doctrine consommée. cet homme a beaucoup de doctrine. ce livre est plein de doctrine. Il se prend aussi pour Maximes, sentiments, enseignements. Bonne, saine doctrine,… …   Dictionnaire de l'Académie française

  • doctrine — doc trine (d[o^]k tr[i^]n), n. [F. doctrine, L. doctrina, fr. doctor. See {Doctor}.] 1. Teaching; instruction. [1913 Webster] He taught them many things by parables, and said unto them in his doctrine, Hearken. Mark iv. 2. [1913 Webster] 2. That… …   The Collaborative International Dictionary of English

  • doctrine — doctrine, dogma, tenet are synonymous only when they mean a principle (usually one of a series or of a body of principles) accepted as authoritative (as by members of a church, a school of philosophers, or a branch of science). Doctrine is often… …   New Dictionary of Synonyms

  • Doctrine — steht für Doctrine (PHP), Framework zur objektrelationalen Abbildung The Anti Doctrine, deutsche Band Fairness Doctrine, Rundfunkrichtline der USA Doctrine classique, Regeldrama der französischen Klassik Siehe auch Doktrin …   Deutsch Wikipedia

  • doctrine — [däk′trin] n. [ME < L doctrina < doctor: see DOCTOR] 1. something taught; teachings 2. something taught as the principles or creed of a religion, political party, etc.; tenet or tenets; belief; dogma 3. a rule, theory, or principle of law ☆ …   English World dictionary

  • doctrine — UK US /ˈdɒktrɪn/ noun [C] ► a principle or set of principles that are followed by a particular group or in a particular situation: »The doctrine of continuous quality improvement is being implemented in the health care industry worldwide. »an… …   Financial and business terms

  • doctrine — (n.) late 14c., from O.Fr. doctrine (12c.) teaching, doctrine, and directly from L. doctrina teaching, body of teachings, learning, from doctor teacher (see DOCTOR (Cf. doctor)) …   Etymology dictionary


Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»