private function createReport(
          ObjectManager $manager, 
          array $name, 
          array $options = array())
    {
        echo $name['fr']." \n";
        
        $cFGroup = (new CustomFieldsGroup())
            ->setName($name)
            ->setEntity('Chill\ReportBundle\Entity\Report')
            ->setOptions($options);

        $manager->persist($cFGroup);
        
        return $cFGroup;
    }
private function createReport(
          ObjectManager $manager, 
          array $name, 
          array $options = array())
    {
        echo $name['fr']." \n";
        
        $cFGroup = (new CustomFieldsGroup())
            ->setName($name)
            ->setEntity('Chill\ReportBundle\Entity\Report')
            ->setOptions($options);

        $manager->persist($cFGroup);
        
        return $cFGroup;
    }
private function createReport ( ObjectManager $ manager , array $ name , array $ options = array ( ) ) { echo $ name [ 'fr' ] . " \n" ; $ cFGroup = ( new CustomFieldsGroup ( ) ) -> setName ( $ name ) -> setEntity ( 'Chill\ReportBundle\Entity\Report' ) -> setOptions ( $ options ) ; $ manager -> persist ( $ cFGroup ) ; return $ cFGroup ; }
create a report and persist in the db

@param ObjectManager $manager
@param array $name
@return CustomFieldsGroup
create a report and persist in the db