Skip to content

schwaen/doctrine-dbal-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doctrine-dbal-extensions

README


Build StatusLatest Stable Version Total Downloads Latest Unstable Version License

What is doctrine-dbal-extensions?

doctrine-dbal-extensions is a library with extensions for the doctrine dbal project

Installation

The best way to install this library is to use composer.

{
    "require": {
        "schwaen/doctrine-dbal-extensions": "~1.*"
    }
}

Requirements

  • PHP >= 5.4.0
  • ext-pdo
  • doctrine/dbal ~2.5

Supports

Documentation

Getting the model object

$config = new \Doctrine\DBAL\Configuration();
$connectionParams = array(
    // other params... like the access
    'wrapperClass' => '\Schwaen\Doctrine\Dbal\Connection',
);
$conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
//variant #1 (need the wrapperClass)
$model1 = $conn->getModel('table_name');
//variant #2 (no need of the wrapperClass)
$model2 = new \Schwaen\Doctrine\Dbal\Model('table_name', $conn);

Working with the model object

License

This library is available under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages