Hi,
i don't understand it.
I've created a "HasMany" Relation with Form Builder, just to test this case:
I have a Parent Model, "Project", which has many Children, "Work".
Project.php - has
public $hasMany = [
'works' => 'Vendor\Plugin\Models\Work'
];
project/fields.yaml - has
tabs:
fields:
works:
label: Works
oc.commentPosition: ''
nameFrom: name
descriptionFrom: description
span: left
context:
- create
- update
type: relation
tab: 'Tab 1'
Now if we visit our "Projects" backend form, we see a list of "Works", but the value is missing.
I've tried getting $this->formField in my own relation plugin, but there is none. Even when other relation types with a similar setup are getting the value just fine.
What is going on?
Help is really appreciated!
Last updated