回答編集履歴
1
補足
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
[エンティティー構築前のリクエストデータ変更 | データの保存 - 4.x](https://book.cakephp.org/4/ja/orm/saving-data.html#before-marshal)
|
6
6
|
|
7
|
-
対象のTableクラスで、
|
7
|
+
対象のTableクラスで、beforeMarshalメソッドを追加し、
|
8
8
|
|
9
9
|
```php
|
10
10
|
public function beforeMarshal(EventInterface $event, ArrayObject $data)
|