From 2b5590a9087926e552abbfc0cb732b377846a03f Mon Sep 17 00:00:00 2001 From: jackbravo Date: Fri, 14 Dec 2007 00:01:47 +0000 Subject: [PATCH] copyDeep no longer exists, copy() as a parameter --- manual/docs/en/component-overview.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/manual/docs/en/component-overview.txt b/manual/docs/en/component-overview.txt index 4c0df2044..e828cadc2 100644 --- a/manual/docs/en/component-overview.txt +++ b/manual/docs/en/component-overview.txt @@ -266,15 +266,14 @@ endswitch; Sometimes you may want to get a copy of your object (a new object with all properties copied). Doctrine provides a simple method for this: {{Doctrine_Record::copy()}}. -// get a simple copy $copy = $user->copy(); -Notice that copying the record with copy() returns a new record (state TDIRTY) with the values of the old record, but it does *not* copy the relations of that record. If you want to copy the relations too, you need to use copyDeep(). +Notice that copying the record with copy() returns a new record (state TDIRTY) with the values of the old record, and it copies the relations of that record. If you do not want to copy the relations too, you need to use copy(false). -// get a copy of user with all the relations -$copy = $user->copyDeep(); +// get a copy of user without the relations +$copy = $user->copy(false); +++ Saving a blank record