public function getRelationship($name)
{
// If relationship does not exist throw an exception
if (!$this->isRelationship($name)) {
$exception = new ModelNotFoundException();
$exception->setModel($name);
throw $exception;
}
return $this->relationships[$name];
}