private function createEntitiesSchema(BundleInterface $bundle, $force = false)
    {
        if (!is_dir($entityDir = $this->getBundleEntityDir($bundle))) {
            return [];
        }

        $bundleEntityManager = $bundle->getEntityManager();
        $bundleEntityManager
            ->getConfiguration()
            ->getMetadataDriverImpl()
            ->addPaths([
                $entityDir,
            ])
        ;

        $metadata = $bundleEntityManager->getMetadataFactory()->getAllMetadata();
        $schemaTool = new SchemaTool($bundleEntityManager);
        $sqls = $schemaTool->getCreateSchemaSql($metadata);
        if (true === $force) {
            $schemaTool->createSchema($metadata);
        }

        return $sqls;
    }