How to attach a paragraph to a node using node_updatehook?
I used this code in hooky_entity_presave

       $paragraph = Paragraph::create([
              'type' =&gt; 'attendance',
              'field_stakeholder' =&gt; array(
               "value"  =&gt;  '". Seema Bist, PS Manjkot from Dunda, Uttarkashi (UTK_130000379) (49647)"',
               //"value"  =&gt;  '49645'
            ),
          ]);
              $paragraph-&gt;save();


            $entity-&gt;field_attendance-&gt;appendItem($paragraph);


Paragragh array is display (target id), but didn't display value of target id  in input value.
in 
Means data added in node__field_at table, but not target id with node id is doesnt add in paragraph__field_st (st is entity reference field in paragraph type.

How to save data in paragraph entity reference field