webmasters/doctrine-skeleton

使用Doctrine 2的示例应用程序骨架

4.0.0 2019-09-08 12:15 UTC

This package is auto-updated.

Last update: 2024-09-08 23:50:25 UTC


README

Webmasters Doctrine Skeleton

使用Doctrine 2的示例应用程序骨架

config/default-config.php

<?php

// MySQL database configuration
$connectionOptions = [
    'driver' => 'pdo_mysql',
    'host' => 'localhost',
    'user' => 'root',
    'password' => '',
    'dbname' => '',
];

// Application/Doctrine configuration
$applicationOptions = [
    'debug_mode' => true, // in production environment false
    'entity_dir' => dirname(__DIR__) . '/src/Entities',
];

根据需要更改用户、密码和dbname。