I am using Fat Free PHP to return a query using a join. Because of this the results have extra fields from another table. I want to be able to convert the array to objects (ie arrayToObjects) but I want the additional fields to persist. I would also like this to return an instance of my class, not an stdClass.
I tried adding the additional fields to the php model but it loses the values when I pass the mysql result into arrayToObjects().
Is this achievable?