1
0
mirror of synced 2025-01-18 06:21:40 +03:00

updated the enum doc

This commit is contained in:
chtito 2007-01-28 10:13:54 +00:00
parent 1bdd4ba7ca
commit 48a2f50263

View File

@ -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;