Skip to content

Commit

Permalink
Avoid deprecation EntityManager
Browse files Browse the repository at this point in the history
  • Loading branch information
shakaran authored and debesha committed Jan 24, 2024
1 parent 32d01bc commit 4410827
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ORM/LoggingEntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

use Doctrine\Common\EventManager;
use Doctrine\ORM\Configuration;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\ORMException;
use Doctrine\ORM\Query;
use Doctrine\DBAL\Connection;
use Doctrine\ORM\Internal\Hydration\AbstractHydrator;

class LoggingEntityManager extends EntityManager
class LoggingEntityManager extends EntityManagerInterface
{
/**
* {@inheritdoc}
Expand Down Expand Up @@ -62,7 +62,7 @@ public function getConfiguration()
/**
* {@inheritdoc}
*/
public static function create($conn, Configuration $config, EventManager $eventManager = null): EntityManager
public static function create($conn, Configuration $config, EventManager $eventManager = null): EntityManagerInterface
{
if (!$config->getMetadataDriverImpl()) {
throw ORMException::missingMappingDriverImpl();
Expand Down

0 comments on commit 4410827

Please sign in to comment.