public function getCollectionFor(array $rids, $lazy = true, $fetchPlan = null)
{
if ($lazy) {
$proxies = array();
foreach ($rids as $rid) {
$proxies[] = $this->getProxyFor(new Rid($rid), $lazy);
}
return new ArrayCollection($proxies);
}
$results = $this->getHydrator()->load($rids, $fetchPlan);
if (is_array($results)) {
return $this->getHydrator()->hydrateCollection($results);
}
return null;
}