ok, cool. so change constructor to:

````
__construct(ManagerRegistry $registry, $managerName)
````

?

On Wed, Apr 17, 2013 at 02:00:19AM -0700, Lukas Kahwe Smith 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)
> 
>    what [1]@stof is talking about is the following
>    [2]https://github.com/symfony-cmf/CreateBundle/blob/master/Controller/ImageController.php#L56
> 
>    and yes you can have multiple managers tied to the same or different
>    workspaces:
>    [3]http://symfony.com/doc/master/cmf/bundles/phpcr-odm.html#configuring-multiple-sessions
>    [4]https://github.com/symfony-cmf/cmf-sandbox/blob/magnolia_integration/app/config/config.yml#L84
> 
>    —
>    Reply to this email directly or [5]view it on GitHub.
> 
> References
> 
>    Visible links
>    1. https://github.com/stof
>    2. https://github.com/symfony-cmf/CreateBundle/blob/master/Controller/ImageController.php#L56
>    3. http://symfony.com/doc/master/cmf/bundles/phpcr-odm.html#configuring-multiple-sessions
>    4. https://github.com/symfony-cmf/cmf-sandbox/blob/magnolia_integration/app/config/config.yml#L84
>    5. https://github.com/doctrine/DoctrinePHPCRBundle/pull/51/files#r3828826