CakePHP3 Tutorial

Next: Generating Template Views with Bake for CakePHP 3 UP: TOC

Paragraph......

create table wnk_task (
id character(36) primary key,
created  timestamp with time zone DEFAULT ('now'::text)::timestamp with time zone,
prio character(1) default 'c',
done_date  timestamp with time zone,
owner_email character varying(255) not null,
issuer_email character varying(255),
task_title character varying(60),
task_description character varying(2000)
)  with (oids = false);

# bin/cake bake model --plugin WnkTaskManager --table wnk_task WnkTask
Welcome to CakePHP v3.1.0-RC1 Console --------------------------------------------------------------- App : src Path: /usr/local/www/..../src/ PHP : 5.6.12 --------------------------------------------------------------- One moment while associations are detected. Baking table class for WnkTask... Creating file /usr/local/www/..../plugins/WnkTaskManager/src/Model/Table/WnkTaskTable.php Wrote `/usr/local/www/..../plugins/WnkTaskManager/src/Model/Table/WnkTaskTable.php` Baking entity class for WnkTask... Creating file /usr/local/www/..../plugins/WnkTaskManager/src/Model/Entity/WnkTask.php Wrote `/usr/local/www/..../plugins/WnkTaskManager/src/Model/Entity/WnkTask.php` Baking test fixture for WnkTask... Creating file /usr/local/www/..../plugins/WnkTaskManager/tests/Fixture/WnkTaskFixture.php Wrote `/usr/local/www/..../plugins/WnkTaskManager/tests/Fixture/WnkTaskFixture.php` Bake is detecting possible fixtures... Baking test case for WnkTaskManager\Model\Table\WnkTaskTable ... Creating file /usr/local/www/..../plugins/WnkTaskManager/tests/TestCase/Model/Table/WnkTaskTableTest.php Wrote `/usr/local/www/..../plugins/WnkTaskManager/tests/TestCase/Model/Table/WnkTaskTableTest.php` Next: Generating Template Views with Bake for CakePHP 3 UP: TOC