I have the following query:
$usersTable = new Users();
$rowset = $usersTable->select()
->setIntegrityCheck(false)
->where( 'id = ?', $userId )
->join( 'Books', 'Books.userid = Users.id' );
However, I canβt understand for life how to read the resulting set of lines (a list of books related to the user).
Can I do the following?
foreach ($book in $rowset->Books) {
print_r($book["book_name"]);
}
source
share