1
0
mirror of synced 2025-01-05 16:53:21 +03:00

Added a caution sign for case-sensitivity of mapping types.

This might help to prevent beginners from being confused when an error is raised due to
wrong spelling. (Like DateTime (wrong) <-> datetime (right))
This commit is contained in:
Christian Heinrich 2010-09-04 13:36:02 +02:00 committed by Jonathan H. Wage
parent 3d7eb3bac8
commit e342b4536a

View File

@ -78,6 +78,10 @@ For example, the Doctrine Mapping Type `string` defines the mapping from a PHP s
> Doctrine Mapping Types are NOT SQL types and NOT PHP types! They are mapping types
> between 2 types.
> **CAUTION**
> Mapping types are *case-sensitive*. For example, using a DateTime column will NOT match the datetime type
> that ships with Doctrine 2!
++ Property Mapping
After a class has been marked as an entity it can specify mappings for its instance fields. Here we will only look at simple fields that hold scalar values like strings, numbers, etc. Associations to other objects are covered in the chapter "Association Mapping".