Skip to content

Commit

Permalink
Update doctrine persistence to remove deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
chosroes committed Jan 7, 2020
1 parent 2bd35a9 commit 57185bb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"doctrine/dbal": "^2.10.0",
"doctrine/event-manager": "^1.1",
"doctrine/instantiator": "^1.3",
"doctrine/persistence": "^1.2",
"doctrine/persistence": "^1.3",
"symfony/console": "^3.0|^4.0|^5.0"
},
"require-dev": {
Expand Down
21 changes: 11 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Decorator/EntityManagerDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

use Doctrine\ORM\Query\ResultSetMapping;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Common\Persistence\ObjectManagerDecorator;
use Doctrine\Persistence\ObjectManagerDecorator;

/**
* Base class for EntityManager decorators
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/Tests/ORM/UnitOfWorkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,8 @@ public function testCommitThrowOptimisticLockExceptionWhenConnectionCommitReturn
->setConstructorArgs([[], new DriverMock()])
->setMethods(['commit'])
->getMock();
$this->_emMock = EntityManagerMock::create($this->_connectionMock, null, $this->eventManager);
$this->_unitOfWork = new UnitOfWorkMock($this->_emMock);
$this->_emMock = EntityManagerMock::create($this->_connectionMock, null, $this->eventManager);
$this->_unitOfWork = new UnitOfWorkMock($this->_emMock);
$this->_emMock->setUnitOfWork($this->_unitOfWork);

$this->_connectionMock->method('commit')->willReturn(false);
Expand Down

0 comments on commit 57185bb

Please sign in to comment.