Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Add support for doctrine/persistence 2
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Dec 18, 2020
1 parent 6a6b934 commit 28a3b93
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require": {
"php": "^7.3",
"doctrine/doctrine-bundle": "^1.12 || ^2.0",
"doctrine/persistence": "^1.3",
"doctrine/persistence": "^1.3 || ^2.0",
"laminas/laminas-diagnostics": "^1.6",
"sonata-project/datagrid-bundle": "^3.0",
"sonata-project/doctrine-extensions": "^1.10.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Selector/ErroneousMessagesSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sonata\NotificationBundle\Selector;

use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\Persistence\ManagerRegistry;
use Sonata\NotificationBundle\Model\MessageInterface;

class ErroneousMessagesSelector
Expand Down
4 changes: 2 additions & 2 deletions tests/Entity/MessageManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@

namespace Sonata\NotificationBundle\Tests\Entity;

use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Doctrine\ORM\AbstractQuery;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Doctrine\Persistence\ManagerRegistry;
use Doctrine\Persistence\Mapping\ClassMetadata;
use PHPUnit\Framework\TestCase;
use Sonata\NotificationBundle\Entity\BaseMessage;
use Sonata\NotificationBundle\Entity\MessageManager;
Expand Down
2 changes: 1 addition & 1 deletion tests/Iterator/MessageManagerMessageIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sonata\NotificationBundle\Tests\Iterator;

use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\Persistence\ManagerRegistry;
use Sonata\NotificationBundle\Iterator\MessageManagerMessageIterator as Iterator;
use Sonata\NotificationBundle\Model\Message;
use Sonata\NotificationBundle\Tests\Entity\MessageManagerMock;
Expand Down
2 changes: 1 addition & 1 deletion tests/Iterator/MessageManagerMessageIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Sonata\NotificationBundle\Tests\Iterator;

use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\Persistence\ManagerRegistry;
use PHPUnit\Framework\TestCase;

/**
Expand Down

0 comments on commit 28a3b93

Please sign in to comment.