{
$GLOBALS['log']->fatal("Loop");
$details[] = $this->formatBean($api, $args, $booking_detail); //(Ok, works fine, I'm getting the beam object).
}
{
$booking_detail = $booking_details[$j];
}
Hi Enrique Madrigal Gutierrez,
It is not happening due to loop, For the confirmation, I applied the foreach loop on the related beans and it is iterating properly, maybe only thing which is creating the glitch is formatBean, I didn't use it so I didn't know about its purpose, If you will remove the formatBean function from your foreach loop it will iterate exactly 4 times, You can check it, formatBean is causing the issue the is why loop iteration is breaking.
Hi Enrique Madrigal Gutierrez,
It is not happening due to loop, For the confirmation, I applied the foreach loop on the related beans and it is iterating properly, maybe only thing which is creating the glitch is formatBean, I didn't use it so I didn't know about its purpose, If you will remove the formatBean function from your foreach loop it will iterate exactly 4 times, You can check it, formatBean is causing the issue the is why loop iteration is breaking.