質問編集履歴

2

追記

2019/08/30 08:03

投稿

tunnel
tunnel

スコア30

test CHANGED
File without changes
test CHANGED
@@ -32,6 +32,14 @@
32
32
 
33
33
  +----------+--------------+------+-----+---------+----------------+
34
34
 
35
+
36
+
37
+ ---
38
+
39
+ var_dump($this->request->data)の結果は下記の通りです。
40
+
41
+ object(App\Model\Entity\User)#149 (11) { ["username"]=> string(5) "dfdfd" ["password"]=> string(60) "$2y$10$6oWv90.BfzGFvKqbh26R2uZVPAFNUcTOynLye/Rm1bmTKbKsaYGWW" ["[new]"]=> bool(true) ["[accessible]"]=> array(2) { ["username"]=> bool(true) ["password"]=> bool(true) } ["[dirty]"]=> array(2) { ["username"]=> bool(true) ["password"]=> bool(true) } ["[original]"]=> array(0) { } ["[virtual]"]=> array(0) { } ["[hasErrors]"]=> bool(false) ["[errors]"]=> array(0) { } ["[invalid]"]=> array(0) { } ["[repository]"]=> string(5) "Users" }
42
+
35
43
  ```php
36
44
 
37
45
  //UserController.php

1

追記

2019/08/30 08:03

投稿

tunnel
tunnel

スコア30

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,32 @@
6
6
 
7
7
  ---array(5) { ["_method"]=> string(4) "POST" ["_csrfToken"]=> string(128) "4c5d6f8a4b0614cde3b1dff1c5bb4456f9b3a13240c48c21834390ba4a952cf78cc42abe638a4ec99a62e34cc5a839c55c29312275f304cc66423f0da8b5ba61" ["username"]=> string(5) "admin" ["password"]=> string(4) "dsds" ["gender"]=> string(6) "女性" }
8
8
 
9
+
10
+
11
+ ---
12
+
13
+ テーブル定義は↓です。
14
+
15
+ +----------+--------------+------+-----+---------+----------------+
16
+
17
+ | Field | Type | Null | Key | Default | Extra |
18
+
19
+ +----------+--------------+------+-----+---------+----------------+
20
+
21
+ | id | int(11) | NO | PRI | NULL | auto_increment |
22
+
23
+ | username | varchar(255) | NO | | NULL | |
24
+
25
+ | created | datetime | NO | | NULL | |
26
+
27
+ | modified | datetime | NO | | NULL | |
28
+
29
+ | password | varchar(255) | NO | | NULL | |
30
+
31
+ | gender | varchar(255) | NO | | NULL | |
32
+
33
+ +----------+--------------+------+-----+---------+----------------+
34
+
9
35
  ```php
10
36
 
11
37
  //UserController.php