Inheritance diagram for PostMutatorTrait:Adds helpers to entities with fields that have to mutated through POST after creation.
Protected Methods | |
| $this | _addWithPost (string $addPath, array $postData, string $field, array $diff) |
For existing entities this adds references to other entities via the given POST path. More... | |
| $this | _removeWithPost (string $rmPath, array $postData, string $field, array|Closure $diff) |
For existing entities this removes references to other entities via the given POST path. More... | |
|
protected |
For existing entities this adds references to other entities via the given POST path.
Stages otherwise.
| string | $addPath | |
| array | $postData | |
| string | $field | |
| array | $diff | For staging. |
|
protected |
For existing entities this removes references to other entities via the given POST path.
Stages otherwise.
| string | $rmPath | |
| array | $postData | |
| string | $field | |
| array | Closure | $diff | For staging. An array, or a filter closure: fn($eachValue):bool |