Commit 48a2f502 authored by chtito's avatar chtito

updated the enum doc

parent 1bdd4ba7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment