From 48a2f502638ae136450a50068259c197f813d796 Mon Sep 17 00:00:00 2001 From: chtito Date: Sun, 28 Jan 2007 10:13:54 +0000 Subject: [PATCH] updated the enum doc --- ...ng started - Setting table definition - Enum emulation.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/manual/codes/Getting started - Setting table definition - Enum emulation.php b/manual/codes/Getting started - Setting table definition - Enum emulation.php index 2983a1234..98bf3d838 100644 --- a/manual/codes/Getting started - Setting table definition - Enum emulation.php +++ b/manual/codes/Getting started - Setting table definition - Enum emulation.php @@ -4,9 +4,7 @@ class Article extends Doctrine_Record { $this->hasColumn("title","string", 200); // maps to TINYINT on mysql - $this->hasColumn("section", "enum", 2); - - $this->setEnumValues("section", array("PHP","Python","Java","Ruby")); + $this->hasColumn("section", "enum", 2, array('values' => array("PHP","Python","Java","Ruby"))); } } $article = new Article;