public function buildUrl($entity,$entityConfig) {
        $route = $entityConfig['route'];
        $routeParameters = $entityConfig['routeParameters'];
        $href = '';
        if($route != null){
            $href = $this->generateUrl($route,array_merge(array('id' => $entity->getId()),$routeParameters));
        }
        return $href;
    }
public function buildUrl($entity,$entityConfig) {
        $route = $entityConfig['route'];
        $routeParameters = $entityConfig['routeParameters'];
        $href = '';
        if($route != null){
            $href = $this->generateUrl($route,array_merge(array('id' => $entity->getId()),$routeParameters));
        }
        return $href;
    }
public function buildUrl ( $ entity , $ entityConfig ) { $ route = $ entityConfig [ 'route' ] ; $ routeParameters = $ entityConfig [ 'routeParameters' ] ; $ href = '' ; if ( $ route != null ) { $ href = $ this -> generateUrl ( $ route , array_merge ( array ( 'id' => $ entity -> getId ( ) ) , $ routeParameters ) ) ; } return $ href ; }
Genera la url
@param type $entity
@param type $entityConfig
@return type
Genera la url