From 4e8e7b8b0f39d20462589c076c7d433e350b5eb7 Mon Sep 17 00:00:00 2001 From: beberlei Date: Tue, 26 Jan 2010 22:03:26 +0000 Subject: [PATCH] [2.0] DDC-277 - Added entry to UPGRADE_TO_2_0 Readme about removal of default mapping option. --- UPGRADE_TO_2_0 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/UPGRADE_TO_2_0 b/UPGRADE_TO_2_0 index c5c8d4d9e..b60592db4 100644 --- a/UPGRADE_TO_2_0 +++ b/UPGRADE_TO_2_0 @@ -2,6 +2,16 @@ > This document does not describe how to upgrade from Doctrine 1.x to Doctrine 2 as this is a more > complicated process. +# Upgrade from 2.0-ALPHA4 to 2.0 ... + +## Default Property for Field Mappings removed + +The "default" option for database column defaults has been removed. If desired database column defaults can +be implemented by using the @columnDefinition annotation (or the approriate XML and YAML equivalents). + +Additionally keep in mind that Doctrine's focus in on objects and you can specifiy default values for an Entitiy's +mapped fields inside PHP easily. Upon persist() invocation these values are saved as if they were default values. + # Upgrade from 2.0-ALPHA3 to 2.0-ALPHA4 ## CLI Controller changes