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:
parent
3d7eb3bac8
commit
e342b4536a
@ -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".
|
||||
|
Loading…
Reference in New Issue
Block a user