You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql> create database mysqlenum default character set utf8;
Query OK, 1 row affected (0.01 sec)
mysql> use mysqlenum
Database changed
mysql> create table enums (`id` int auto_increment, mysqlenum enum('hoge','foo','bar'), primary key (`id`) );
Query OK, 0 rows affected (0.01 sec)
$ Console/cake bake model enums
Welcome to CakePHP v2.1.2 Console
---------------------------------------------------------------
App : app
Path: app/
---------------------------------------------------------------
Baking model class for Enum...
Creating file app/Model/Enum.php
Wrote `app/Model/Enum.php`
Baking test fixture for Enum...
Creating file app/Test/Fixture/EnumFixture.php
Wrote `app/Test/Fixture/EnumFixture.php`
Bake is detecting possible fixtures...
Baking test case for Enum Model ...
Creating file app/Test/Case/Model/EnumTest.php
Wrote `app/Test/Case/Model/EnumTest.php`