src/Mapper/Relation/AbstractRelation.php
public function getAdapter()
    {
        if (null == $this->adapter) {
            $className = $this->getEntityDescriptor()->className();
            $repository = Orm::getRepository($className);
            $this->setAdapter($repository->getAdapter());
        }
        return $this->adapter;
    }
public function getAdapter()
    {
        if (null == $this->adapter) {
            $className = $this->getEntityDescriptor()->className();
            $repository = Orm::getRepository($className);
            $this->setAdapter($repository->getAdapter());
        }
        return $this->adapter;
    }
public function getAdapter ( ) { if ( null == $ this -> adapter ) { $ className = $ this -> getEntityDescriptor ( ) -> className ( ) ; $ repository = Orm :: getRepository ( $ className ) ; $ this -> setAdapter ( $ repository -> getAdapter ( ) ) ; } return $ this -> adapter ; }
Gets relation adapter

@return AdapterInterface
Gets relation adapter