I wonder how that would work here, can we have multiple managers in
PHPCR? If so are managers tied to a workspace, and should we pass the
workspace in the constructor? @lsmith, @dbu ?

On Wed, Apr 17, 2013 at 01:31:09AM -0700, Christophe Coevoet wrote:
>    In Form/DataTransformer/DocumentToPathTransformer.php:
> 
>  > @@ -0,0 +1,50 @@
>  > +<?php
>  > +
>  > +namespace Doctrine\Bundle\PHPCRBundle\Form\DataTransformer;
>  > +
>  > +use Symfony\Component\Form\DataTransformerInterface;
>  > +use Doctrine\ODM\PHPCR\DocumentManager;
>  > +
>  > +class DocumentToPathTransformer implements DataTransformerInterface
>  > +{
>  > +    protected $dm;
>  > +
>  > +    public function __construct(DocumentManager $dm)
> 
>    you should inject the registry instead, to support multiple managers (like
>    in the DoctrineType)
> 
>    —
>    Reply to this email directly or [1]view it on GitHub.
> 
> References
> 
>    Visible links
>    1. https://github.com/doctrine/DoctrinePHPCRBundle/pull/51/files#r3828449