mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-08 02:24:26 +00:00
23 lines
457 B
PHP
23 lines
457 B
PHP
<?php
|
|
|
|
namespace Alchemy\Phrasea\Model\Repositories;
|
|
|
|
use Doctrine\ORM\EntityRepository;
|
|
|
|
|
|
class WorkerJobRepository extends EntityRepository
|
|
{
|
|
public function getEntityManager()
|
|
{
|
|
return parent::getEntityManager();
|
|
}
|
|
|
|
public function reconnect()
|
|
{
|
|
if($this->_em->getConnection()->ping() === false) {
|
|
$this->_em->getConnection()->close();
|
|
$this->_em->getConnection()->connect();
|
|
}
|
|
}
|
|
}
|