clock-work
This commit is contained in:
12
vendor/itsgoingd/clockwork/Clockwork/DataSource/DoctrineDataSource.php
vendored
Normal file
12
vendor/itsgoingd/clockwork/Clockwork/DataSource/DoctrineDataSource.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php namespace Clockwork\DataSource;
|
||||
|
||||
use Doctrine\ORM\EntityManager;
|
||||
|
||||
// Data source for Doctrine, provides database queries
|
||||
class DoctrineDataSource extends DBALDataSource
|
||||
{
|
||||
public function __construct(EntityManager $enm)
|
||||
{
|
||||
parent::__construct($enm->getConnection());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user