Note that there are some explanatory texts on larger screens.

plurals
  1. POCorrect configuration for cli-config.php for Doctrine ORM 2.1 without a framework
    primarykey
    data
    text
    <p>i have this configuration for cli-config.php Doctrine CLI 2.2.0-DEV</p> <pre><code>&lt;?php require_once '../lib/vendor/doctrine-common/lib/Doctrine/Common/ClassLoader.php'; $classLoader = new \Doctrine\Common\ClassLoader('Doctrine\ORM', realpath(__DIR__ . '/../lib')); $classLoader-&gt;register(); $classLoader = new \Doctrine\Common\ClassLoader('Doctrine\DBAL', realpath(__DIR__ . '/../lib/vendor/doctrine-dbal/lib')); $classLoader-&gt;register(); $classLoader = new \Doctrine\Common\ClassLoader('Doctrine\Common', realpath(__DIR__ . '/../lib/vendor/doctrine-common/lib')); $classLoader-&gt;register(); $classLoader = new \Doctrine\Common\ClassLoader('Symfony', realpath(__DIR__ . '/../lib/vendor')); $classLoader-&gt;register(); $classloader = new \Doctrine\Common\ClassLoader('MyProject', __DIR__ ); $classloader-&gt;register(); $config = new \Doctrine\ORM\Configuration(); $config-&gt;setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache); //$driverImpl = $config-&gt;newDefaultAnnotationDriver(array(__DIR__."/mapping")); $driverImpl = new Doctrine\ORM\Mapping\Driver\YamlDriver(realpath(__DIR__.'/mapping/yml/')); //$driverImpl = new Doctrine\ORM\Mapping\Driver\XmlDriver(realpath(__DIR__.'/mapping/xml/')); $config-&gt;setMetadataDriverImpl($driverImpl); $config-&gt;setProxyDir(__DIR__ . '/Proxies'); $config-&gt;setProxyNamespace('Proxies'); $connectionOptions = array( 'driver' =&gt; 'pdo_mysql', 'path' =&gt; '192.168.10.210', 'dbname' =&gt; 'my_database_name', 'user' =&gt; 'root', 'password' =&gt; 'my_password' ); $em = \Doctrine\ORM\EntityManager::create($connectionOptions, $config); $helpers = array( 'db' =&gt; new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em-&gt;getConnection()), 'em' =&gt; new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em) ); </code></pre> <p>i can generate YML files, XML files and Annotation hten i can get the Entitites but i can get proxies.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload