library doctrine-dbal-extensions
extensions for the doctrine dbal project
bedd/doctrine-dbal-extensions
extensions for the doctrine dbal project
- Thursday, March 9, 2017
- by schwaen
- Repository
- 1 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
README
, (*1)
Installation
The best way to install this library is to use composer., (*2)
{
"require": {
"bedd/doctrine-dbal-extensions": "1.*"
}
}
Usage
Getting a model
$config = new \Doctrine\DBAL\Configuration();
$connectionParams = array(
// other params... like the access
'wrapperClass' => '\Bedd\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 \Bedd\Doctrine\Dbal\Model('table_name', $conn);```
### Working with a model
```php
//@todo
License
This library is available under the MIT license., (*3)
dev-master
9999999-dev
extensions for the doctrine dbal project
Sources
Download
MIT
The Requires
The Development Requires
by
Sven Muhle