updated the enum doc
This commit is contained in:
parent
1bdd4ba7ca
commit
48a2f50263
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user