1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Removing ::class usage (PHP 5.5 is not yet required on ORM 2.5)

This commit is contained in:
Marco Pivetta 2016-09-09 22:52:54 +02:00
parent 8e95672f49
commit 47ce079b64
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@ namespace Doctrine\Tests\Models\Issue5989;
*/
class Issue5989Person
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @Column(type="integer")

View File

@ -40,7 +40,7 @@ class Issue5989Test extends \Doctrine\Tests\OrmFunctionalTestCase
// instead of just returning the existing managed entities
$this->_em->clear();
$repository = $this->_em->getRepository(Issue5989Person::class);
$repository = $this->_em->getRepository(Issue5989Person::CLASSNAME);
$manager = $repository->find($managerId);
$employee = $repository->find($employeeId);