DoctrineNamespace.php 732 bytes
<?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);