Programmatically add entries to an Entry field (craft\fields\Entries)
If you are running on Craft 3, as of 3.4.0 (and really since the release of craft 3), setting custom field values directly like

$entry-&gt;customField = [id1, id2, id3];


is broken. You should instead use the setFieldValue or setFieldValues methods.

in your case, a relationship field can be set like so:

$reglages-&gt;setFieldValue(curatedHomepageArticles, [&lt;ARRAY OF ENTRY IDs]);