An error occurred while loading the file. Please try again.
-
Guillaume Perréal authoredde9253f1
<?php
/*
* © 2016 IRSTEA
* Guillaume Perréal <guillaume.perreal@irstea.fr>
* Tous droits réservés.
*/
namespace Irstea\PlantUmlBundle\Doctrine;
/**
* Description of DoctrineNamespace
*
* @author Guillaume Perréal <guillaume.perreal@irstea.fr>
*/
class DoctrineNamespace extends \Irstea\PlantUmlBundle\Model\Namespace_\MappedNamespace
{
const SEPARATOR = '::';
public function __construct(\Doctrine\ORM\EntityManagerInterface $em)
{
$entityNamespaces = $em->getConfiguration()->getEntityNamespaces();
$mapping = [];
foreach($entityNamespaces as $alias => $namespace) {
$mapping[$namespace.'\\'] = $alias.'::';
}
parent::__construct($mapping);
}
}