public function createDoctrineAdapter($adapterClass = null, $entityManagerName = null)
    {
        if (null == $adapterClass) {
            $adapterClass = 'Lexik\Bundle\CurrencyBundle\Adapter\DoctrineCurrencyAdapter';
        }
        $adapter = $this->create($adapterClass);

        $em = $this->doctrine->getManager($entityManagerName);
        $adapter->setManager($em);

        return $adapter;
    }
public function createDoctrineAdapter($adapterClass = null, $entityManagerName = null)
    {
        if (null == $adapterClass) {
            $adapterClass = 'Lexik\Bundle\CurrencyBundle\Adapter\DoctrineCurrencyAdapter';
        }
        $adapter = $this->create($adapterClass);

        $em = $this->doctrine->getManager($entityManagerName);
        $adapter->setManager($em);

        return $adapter;
    }
public function createDoctrineAdapter ( $ adapterClass = null , $ entityManagerName = null ) { if ( null == $ adapterClass ) { $ adapterClass = 'Lexik\Bundle\CurrencyBundle\Adapter\DoctrineCurrencyAdapter' ; } $ adapter = $ this -> create ( $ adapterClass ) ; $ em = $ this -> doctrine -> getManager ( $ entityManagerName ) ; $ adapter -> setManager ( $ em ) ; return $ adapter ; }
Create a DoctrineCurrencyAdapter.

@return Lexik\Bundle\CurrencyBundle\Adapter\DoctrineCurrencyAdapter
Create a DoctrineCurrencyAdapter .