I would really appreciate if somebody could help me with this :)
I have a field collection called field_formations. Inside it I have 2 fields:
- field_technologies - (reference to a taxonomy).
- field_diploma -(how it's also a field collection which contain 2 other fields:
- field_name(reference to a taxonomy)
- field_establishement (text plain)
).
I've created a form with 3 field forms - technology
- diplome_name
establishement
and into the submit form i would like to submit values of this forms into the node created at first.
I tried to setValues like this :
$node->field_formations->field_technologies->setValue($values['technology']);
but it dosen't work
Can any body have a suggetion??
PS : I'm using drupal 8