alireaza/doctrine-orm

This is Doctrine ORM package.

1.2.0 2022-03-06 11:18 UTC

This package is auto-updated.

Last update: 2023-01-06 13:13:55 UTC


README

Install

Via Composer

$ composer require alireaza/doctrine-orm

Usage

use AliReaza\Doctrine\ORM\Doctrine;

$doctrine = new Doctrine([
    'driver' => 'pdo_mysql',
    'host' => 127.0.0.1,
    'port' => 3306,
    'user' => 'root',
    'password' => '',
    'dbname' => 'database_name'
], [
    'app/Entities'
]);

$em = $doctrine->getEntityManager();

License

The MIT License (MIT). Please see License File for more information.