alireaza/doctrine-orm

This is Doctrine ORM package.

1.2.0 2022-03-06 11:18 UTC

This package is auto-updated.

Last update: 2024-12-06 17:25:25 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.