$finder->findAllByPk($key1, $key2, ...);
$finder->findAllByPk(array($key1, $key2, ...));
For composite keys:
$finder->findAllByPk(array($key1, $key2), array($key3, $key4), ...);
$finder->findAllByPk(array(array($key1, $key2), array($key3, $key4), ...));
public findAllByPks ( $keys ) : array | ||
return | array | matching ActiveRecords. Empty array is returned if no result is found. |
public function findAllByPks($keys)
{
if (func_num_args() > 1) {
$keys = func_get_args();
}
$result = $this->getRecordGateway()->findRecordsByPks($this, (array) $keys);
return $this->populateObjects($result);
}