From 30a2aa0b9475079bf89921f1befcc4515e9cb7af Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 21 Apr 2008 14:35:40 +0000 Subject: prepare for release. --- demos/quickstart/protected/pages/Database/ActiveRecord.page | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'demos/quickstart/protected') diff --git a/demos/quickstart/protected/pages/Database/ActiveRecord.page b/demos/quickstart/protected/pages/Database/ActiveRecord.page index db0a0559..70998587 100644 --- a/demos/quickstart/protected/pages/Database/ActiveRecord.page +++ b/demos/quickstart/protected/pages/Database/ActiveRecord.page @@ -411,9 +411,7 @@ $user2 = new UserRecord($data); //create by passing some existing data $user2->save(); //insert a new record
Tip: -The objects are update with the primary key of those the tables that contains -definitions that automatically creates a primary key for the newly insert records. -For example, if you insert a new record into a MySQL table that has columns +If you insert a new record into a MySQL table that has columns defined with "autoincrement", the Active Record objects will be updated with the new incremented value.
-- cgit v1.2.3