Just to answer to the question, the getAll()
method will return a multidimensional array so, if you want to print the results, you have to loop it as an associative array:
foreach($rows as $author)
{
echo $author['first_name'];
}
When you apply the convertToBeans()
method you get an array of objects:
foreach($authors as $author)
{
echo $author->first_name;
}
Here you can see the source of the file that defines the method, i.e. OODB.php:
In your example you can spot the difference by using print_r
over the variables $rows and authors. Bye!