Repository navigation
Div PHP ORM 0.2.0
New method for build a PDO instances, orm::buildPDO($config, $connectGlobal);
This example build a PDO instance, and make a global connection:
<?php
use divengine\orm;
$pdo = orm::buildPDO([
'type' => 'pgsql',
'host' => 'localhost',
'port' => 5432,
'name' => 'mydb',
'user' => 'me',
'pass' => 'mysuperpass'
], true);