src/Orm.php
private function getAdapterAlias($entity)
    {
        $descriptor = EntityDescriptorRegistry::getInstance()
            ->getDescriptorFor($entity);
        return $descriptor->getAdapterAlias()
            ? $descriptor->getAdapterAlias()
            : 'default';
    }
private function getAdapterAlias($entity)
    {
        $descriptor = EntityDescriptorRegistry::getInstance()
            ->getDescriptorFor($entity);
        return $descriptor->getAdapterAlias()
            ? $descriptor->getAdapterAlias()
            : 'default';
    }
private function getAdapterAlias ( $ entity ) { $ descriptor = EntityDescriptorRegistry :: getInstance ( ) -> getDescriptorFor ( $ entity ) ; return $ descriptor -> getAdapterAlias ( ) ? $ descriptor -> getAdapterAlias ( ) : 'default' ; }
Gets the adapter alias for current working entity

@param string $entity

@return string
Gets the adapter alias for current working entity