public function setDataFromCollection($name, Collection &$data, $keyMap = null)
{
if (!isset($this->relations[$name])) {
throw new DataModel\Relation\Exception\RelationNotFound("Relation '{$name}' not found");
}
$this->relations[$name]->setDataFromCollection($data, $keyMap);
}