Php原则-访问更多现有模式

Php原则-访问更多现有模式,php,doctrine-orm,doctrine,Php,Doctrine Orm,Doctrine,我在Xampp服务器上实现了条令。现在我想访问两个以上的模式?我认为它将与SchemaManager一起运行,但我没有找到从多个模式创建实体的方法 这是我的密码: use Doctrine\ORM\Tools\Setup; use Doctrine\ORM\EntityManager; require_once "vendor/autoload.php"; // Create a simple "default" Doctrine ORM configuration for Annotati

我在Xampp服务器上实现了条令。现在我想访问两个以上的模式?我认为它将与SchemaManager一起运行,但我没有找到从多个模式创建实体的方法

这是我的密码:

use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;

require_once "vendor/autoload.php";

// Create a simple "default" Doctrine ORM configuration for Annotations
$isDevMode = true;
$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__. "/Entities"), $isDevMode);

// database configuration parameters
$localConn = array(
    'driver' => 'pdo_mysql',
    'user'=> 'root',
    'password' => '',
    'host' => 'localhost',
    'dbname' => 'shop',
    'port' => '3306',
);

// obtaining the entity manager
$entityManager = EntityManager::create($localConn, $config);

谢谢您的帮助。

您在
$config
的设置中错过了一个
。对不起,我的代码中有一个是正确的。如果我复制了代码,我已将其删除。它使用一个架构运行,但我有多个架构。现在您的架构太多,请检查代码