source/Spiral/ORM/ORM.php
protected function getFactory(): FactoryInterface
    {
        if ($this->container instanceof FactoryInterface) {
            return $this->container;
        }

        return $this->container->get(FactoryInterface::class);
    }
protected function getFactory(): FactoryInterface
    {
        if ($this->container instanceof FactoryInterface) {
            return $this->container;
        }

        return $this->container->get(FactoryInterface::class);
    }
protected function getFactory ( ) : FactoryInterface { if ( $ this -> container instanceof FactoryInterface ) { return $ this -> container ; } return $ this -> container -> get ( FactoryInterface :: class ) ; }
Get ODM specific factory.

@return FactoryInterface
Get ODM specific factory .