I have a stored procedure that I call upon using ‘core_read’ and query method. The results are then gathered using fetchAll(PDO::FETCH_ASSOC).
The data comes out perfectly. I can do a foreach on the array, and access data by array keys ($row[‘name’]).
I would like to convert the associative array into a Varien_Object, so I could access the data using $row->getName() notation… Keeping it in Magento style… How would I perform such a conversion, if possible?
Thank you for your suggestions, and I think it would have worked if I had one line coming back from the stored procedure. Here’s what I ended up doing: