# bin/cake bake all users Bake All --------------------------------------------------------------- One moment while associations are detected. Baking table class for Users... Creating file /var/www/html/cakephp3.com/src/Model/Table/UsersTable.php Wrote `/var/www/html/cakephp3.com/src/Model/Table/UsersTable.php` Deleted `/var/www/html/cakephp3.com/src/Model/Table/empty` Baking entity class for User... Creating file /var/www/html/cakephp3.com/src/Model/Entity/User.php Wrote `/var/www/html/cakephp3.com/src/Model/Entity/User.php` Deleted `/var/www/html/cakephp3.com/src/Model/Entity/empty` Baking test fixture for Users... Creating file /var/www/html/cakephp3.com/tests/Fixture/UsersFixture.php Wrote `/var/www/html/cakephp3.com/tests/Fixture/UsersFixture.php` Deleted `/var/www/html/cakephp3.com/tests/Fixture/empty` Bake is detecting possible fixtures... Baking test case for App\Model\Table\UsersTable ... Creating file /var/www/html/cakephp3.com/tests/TestCase/Model/Table/UsersTableTest.php Wrote `/var/www/html/cakephp3.com/tests/TestCase/Model/Table/UsersTableTest.php` Baking controller class for Users... Creating file /var/www/html/cakephp3.com/src/Controller/UsersController.php Wrote `/var/www/html/cakephp3.com/src/Controller/UsersController.php` Bake is detecting possible fixtures... Baking test case for App\Controller\UsersController ... Creating file /var/www/html/cakephp3.com/tests/TestCase/Controller/UsersControllerTest.php Wrote `/var/www/html/cakephp3.com/tests/TestCase/Controller/UsersControllerTest.php` Baking `index` view template file... Creating file /var/www/html/cakephp3.com/src/Template/Users/index.ctp Wrote `/var/www/html/cakephp3.com/src/Template/Users/index.ctp` Baking `view` view template file... Creating file /var/www/html/cakephp3.com/src/Template/Users/view.ctp Wrote `/var/www/html/cakephp3.com/src/Template/Users/view.ctp` Baking `add` view template file... Creating file /var/www/html/cakephp3.com/src/Template/Users/add.ctp Wrote `/var/www/html/cakephp3.com/src/Template/Users/add.ctp` Baking `edit` view template file... Creating file /var/www/html/cakephp3.com/src/Template/Users/edit.ctp Wrote `/var/www/html/cakephp3.com/src/Template/Users/edit.ctp` Bake All complete.
# cat src/Model/Entity/User.php <?php namespaceApp\Model\Entity; useCake\ORM\Entity; /** * User Entity * * @property int $id * @property string $email * @property string $password * @property string $status * @property \Cake\I18n\FrozenTime $created * @property \Cake\I18n\FrozenTime $modified */ classUserextendsEntity { /** * Fields that can be mass assigned using newEntity() or patchEntity(). * * Note that when '*' is set to true, this allows all unspecified fields to * be mass assigned. For security purposes, it is advised to set '*' to false * (or remove it), and explicitly make individual fields accessible as needed. * * @var array */ protected $_accessible = [ 'email' => true, 'password' => true, 'status' => true, 'created' => true, 'modified' => true ]; /** * Fields that are excluded from JSON versions of the entity. * * @var array */ protected $_hidden = [ 'password' ]; }