In CakePHP 3 a find returns an object instead of an array. I know that you can convert the object into an array using toArray(). I'm trying to decide which is "better" to use. I know this can be seen as a subjective question, but I don't mind, I'm interested in your answers.
I read about object vs array, but can't really get a good answer out of what I googled and read. Person X says that using objects is better or faster, Person Y says using arrays is. So I thought I would ask here.
So while keeping CakePHP in mind, does it matter if you use the returned object or convert it into an array performance wise?
all()ortoArray(). So what object are you talking about? query objects? Entity oblects? Recordset objects?