EcommerceBundle/Controller/FeatureValueController.php
public function indexAction($featureId)
    {
        $em = $this->getDoctrine()->getManager();

        /** @var Feature $feature */
        $feature = $em->getRepository('EcommerceBundle:Feature')->find($featureId);

        if (!$feature) {
            throw $this->createNotFoundException('Unable to find Feature entity.');
        }

        return array(
            'feature'    => $feature,
        );
    }
public function indexAction($featureId)
    {
        $em = $this->getDoctrine()->getManager();

        /** @var Feature $feature */
        $feature = $em->getRepository('EcommerceBundle:Feature')->find($featureId);

        if (!$feature) {
            throw $this->createNotFoundException('Unable to find Feature entity.');
        }

        return array(
            'feature'    => $feature,
        );
    }
public function indexAction ( $ featureId ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; /** @var Feature $feature */ $ feature = $ em -> getRepository ( 'EcommerceBundle:Feature' ) -> find ( $ featureId ) ; if ( ! $ feature ) { throw $ this -> createNotFoundException ( 'Unable to find Feature entity.' ) ; } return array ( 'feature' => $ feature , ) ; }
Lists all FeatureValue entities.

@param int $featureId The feature id

@throws NotFoundHttpException
@return array

@Route("/")
@Method("GET")
@Template("EcommerceBundle:FeatureValue:index.html.twig")
Lists all FeatureValue entities .