1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Mention 5.3 dependency in getting started tutorial, and link to entity restrictions aswell. Add the func_get_args() restriction to the list in architecture.

This commit is contained in:
Benjamin Eberlei 2011-06-11 09:52:17 +02:00
parent 6f909b6e69
commit 71c47f69ec
2 changed files with 9 additions and 4 deletions

View File

@ -28,6 +28,9 @@ be any regular PHP class observing the following restrictions:
property with the same name. That is, if B inherits from A then B property with the same name. That is, if B inherits from A then B
must not have a mapped field with the same name as an already must not have a mapped field with the same name as an already
mapped field that is inherited from A. mapped field that is inherited from A.
- An entity cannot make use of func_get_args() to implement variable parameters.
Generated proxies do not support this for performance reasons and your code might
actually fail to work when violating this restriction.
Entities support inheritance, polymorphic associations, and Entities support inheritance, polymorphic associations, and
polymorphic queries. Both abstract and concrete classes can be polymorphic queries. Both abstract and concrete classes can be

View File

@ -1,12 +1,11 @@
Getting Started Getting Started
=============== ===============
Doctrine 2 is a project that aims to handle the persistence of the Doctrine 2 is an object-relational mapper (ORM) for PHP 5.3.0+ that provides transparent persistence for PHP objects.
domain model in a non-interfering way. The Data Mapper pattern is It uses the Data Mapper pattern at the heart of this project, aiming for a complete separation of
at the heart of this project, aiming for a complete separation of
the domain/business logic from the persistence in a relational the domain/business logic from the persistence in a relational
database management system. The benefit of Doctrine for the database management system. The benefit of Doctrine for the
programmer is the ability to focus solely on the business logic and programmer is the ability to focus solely on the object-oriented business logic and
worry about persistence only as a secondary task. This doesn't mean worry about persistence only as a secondary task. This doesn't mean
persistence is not important to Doctrine 2, however it is our persistence is not important to Doctrine 2, however it is our
belief that there are considerable benefits for object-oriented belief that there are considerable benefits for object-oriented
@ -21,6 +20,9 @@ abstract base class or interface. An entity class must not be final
or contain final methods. Additionally it must not implement or contain final methods. Additionally it must not implement
**clone** nor **wakeup** or :doc:`do so safely <../cookbook/implementing-wakeup-or-clone>`. **clone** nor **wakeup** or :doc:`do so safely <../cookbook/implementing-wakeup-or-clone>`.
See the `architecture chapter <../reference/architecture>` for a full list of the restrictions
that your entities need to comply with.
An entity contains persistable properties. A persistable property An entity contains persistable properties. A persistable property
is an instance variable of the entity that is saved into and retrieved from the database is an instance variable of the entity that is saved into and retrieved from the database
by Doctrine's data mapping capabilities. by Doctrine's data mapping capabilities.