Hello,
After lot of investigation, I have added exactly the same code called by "BeforeRender" into Content part of the form. In this case I have expected result,
$fields['maformulecomposantes']->value return the good array. If I call the same code from Site part of the form (during modification of article) , whatever if it is called by BeforeStore, AfterStore or BeforeRender $fields['maformulecomposantes']->value return an integer.
So in synthesis, if I call php code from Site part, $fields['maformulecomposantes']->value return an Integer
if I call same php code from Content part, $fields['maformulecomposantes']->value return expected array.
In addition I have restored a backup from similar functionnality developed with previous version of SEBLOD, I have no problem, BeforeStore work fine.
Thank you in advance
Gerard