1
0
mirror of synced 2025-02-06 23:39:25 +03:00

Changes thanks to @Ocramius

This commit is contained in:
Ryan Weaver 2013-09-12 20:52:12 -05:00
parent 36d7d60c3b
commit 1fcef3321e

View File

@ -4,7 +4,7 @@ Basic Mapping
This guide explains the basic mapping of entities and properties. This guide explains the basic mapping of entities and properties.
After working through this guide you should know: After working through this guide you should know:
- How to create PHP classes that can be saved to the database with Doctrine; - How to create PHP objects that can be saved to the database with Doctrine;
- How to configure the mapping between columns on tables and properties on - How to configure the mapping between columns on tables and properties on
entities; entities;
- What Doctrine mapping types are; - What Doctrine mapping types are;
@ -23,7 +23,7 @@ Doctrine.
Creating Classes for the Database Creating Classes for the Database
--------------------------------- ---------------------------------
Every PHP class that you want to save in the database using Doctrine Every PHP object that you want to save in the database using Doctrine
is called an "Entity". The term "Entity" describes objects is called an "Entity". The term "Entity" describes objects
that have an identity over many independent requests. This identity is that have an identity over many independent requests. This identity is
usually achieved by assigning a unique identifier to an entity. usually achieved by assigning a unique identifier to an entity.
@ -47,7 +47,7 @@ entity should be stored in the database. The documentation will often
speak of "mapping something", which means writing the mapping metadata speak of "mapping something", which means writing the mapping metadata
that describes your entity. that describes your entity.
Doctrine provides several different ways to specifying object-relational Doctrine provides several different ways to specify object-relational
mapping metadata: mapping metadata:
- :doc:`Docblock Annotations <annotations-reference>` - :doc:`Docblock Annotations <annotations-reference>`