public function mapper($entityName)
    {
        if (!class_exists($entityName)) {
            throw new \Exception('Unable to get mapper for unknown entity class '.$entityName);
        }
        $locator = $this['spot2.locator'];

        return $locator->mapper($entityName);
    }
public function mapper($entityName)
    {
        if (!class_exists($entityName)) {
            throw new \Exception('Unable to get mapper for unknown entity class '.$entityName);
        }
        $locator = $this['spot2.locator'];

        return $locator->mapper($entityName);
    }
public function mapper ( $ entityName ) { if ( ! class_exists ( $ entityName ) ) { throw new \ Exception ( 'Unable to get mapper for unknown entity class ' . $ entityName ) ; } $ locator = $ this [ 'spot2.locator' ] ; return $ locator -> mapper ( $ entityName ) ; }
Get a mapper for a given entity.

@param string $entityName

@return Spot\Mapper

@author Ronan Chilvers <ronan@d3r.com>
Get a mapper for a given entity .