I want to be able to select multiple rows with one query. I was wondering if you can do something like this?
$teamsQuery = $this->db;
foreach( $teamids as $teamid )
$teamsQuery->where('teamid', $teamid);
$teamsQuery->get('team');
$teams = $teamsQuery->result();
print_r($teams);
By definition, an ActiveRecord wraps a single row in a database in an object and attaches business and persistence logic to it. If you want to fetch multiple rows with one query, have a look at TableDataGateway.
In the TableDateGateway you would have a method
findTeamsByIdswhich you will pass the entire array of IDs and then fetch those in aSELECT … WHERE … INquery.