Bug de valeur sur commande info

je pense que le probleme ce trouve ici

if(property_exists($endpoint, "linked_to")){
            $links[$cmd->getId()] = $endpoint->linked_to;
        }
        log::add ('jeedore','debug',"Saved command ".$endpoint->name." for id :".$endpoint->id );
    }
    foreach($links as $id => $logicalId)
    {
        $info = jeedoreCmd::byLogicalId($logicalId, 'info')[0];
        $action = jeedoreCmd::byId($id);
        if(!is_object($info) || !is_object($action)){
            continue;
        }
        
        $action->setValue($info->getId());
        $action->save();
        log::add ('jeedore','debug','Command linked' );
    }
}