Creating PHP parralel treatments from a getResult doctrine request

I would like to do some kind of multi threading in a PHP8/Symfony6 environement which would work as follow:

I’m making a doctrine request which serve around a million of rows

I would like to create multiple parralel processes to treat those rows simultaneously.
My request is made with a getResult() which serve doctrine objects.
Is there a way I could create threads with an array of objects as parameter. And then process to create thread as long as my “queue” is filled with datas?

I found some informations about “pthreads” or “popen” but I’m not sure its still relevant as the topics are a bit old