I am facing an issue. Please have a look at the below code:
// $data having 1000 entries
foreach($data as $key=>$value) {
$resultStore = $this->db->query("call get_parents(" . $value['id'] . ")");
$dataStore = $resultStore->fetchAll(PDO::FETCH_ASSOC);
}
The problem is that the loop only executes a single time. Note that I am using the Phalcon framework.