mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
50 lines
1.1 KiB
PHP
Executable File
50 lines
1.1 KiB
PHP
Executable File
<?php
|
|
chdir(dirname(__FILE__));
|
|
set_include_path( dirname(__FILE__) );
|
|
|
|
require_once "vendor/autoload.php";
|
|
|
|
//error_reporting(-1);
|
|
|
|
/*
|
|
use Doctrine\ORM\Tools\Setup;
|
|
|
|
$isDevMode = true;
|
|
//JSON Driver for Doctrine
|
|
use Doctrine\ORM\Mapping\Driver\JsonDriver;
|
|
|
|
$config = Setup::createConfiguration($isDevMode, null, null);
|
|
$config->setMetadataDriverImpl(new JsonDriver(array(__DIR__."/data/cache/doctrine/metadata")));
|
|
//END: JSON Driver for Doctrine
|
|
*/
|
|
|
|
// database configuration parameters
|
|
/*$conn = array(
|
|
'driver' => 'pdo_sqlite',
|
|
'path' => __DIR__ . '/db.sqlite',
|
|
); */
|
|
|
|
/*$conn = array(
|
|
'driver' => 'pdo_mysql',
|
|
'user' => 'root',
|
|
'password' => '',
|
|
'dbname' => 'jet_doctrine_last',
|
|
); */
|
|
|
|
|
|
/*$conn = array(
|
|
'driver' => 'pdo_mysql',
|
|
//'driver' => 'mysqli',
|
|
'host' => 'localhost',
|
|
'dbname' => 'jetcrm',
|
|
'user' => 'root',
|
|
'password' => ''
|
|
);
|
|
|
|
// obtaining the entity manager
|
|
//$entityManager = \Doctrine\ORM\EntityManager::create($conn, $config);
|
|
$em = \Doctrine\ORM\EntityManager::create($conn, $config);
|
|
*/
|
|
|
|
|
|
?>
|