Exemple #1
0
 /**
  * @param string $name
  * @param array  $config For available options see Repository::$config
  * @param string $label
  *
  * @return Repository
  */
 public function createRepository($name, array $config, $label = null)
 {
     $repository = new Repository($name, $config);
     $repository->setLabel($label);
     $repository->init($this->container);
     $this->em->persist($repository);
     $this->em->flush();
     return $repository;
 }