1
0
mirror of synced 2025-02-09 00:39:25 +03:00

#5867 s/::class/::CLASSNAME for PHP 5.4 compat

This commit is contained in:
Marco Pivetta 2016-06-19 12:48:15 +02:00
parent 2af84c6025
commit b183818fa8

View File

@ -9,7 +9,7 @@ class DDC3303Test extends OrmFunctionalTestCase
{
parent::setUp();
$this->_schemaTool->createSchema([$this->_em->getClassMetadata(DDC3303Employee::class)]);
$this->_schemaTool->createSchema([$this->_em->getClassMetadata(DDC3303Employee::CLASSNAME)]);
}
/**
@ -31,7 +31,7 @@ class DDC3303Test extends OrmFunctionalTestCase
$this->_em->flush();
$this->_em->clear();
self::assertEquals($employee, $this->_em->find(DDC3303Employee::class, 'John Doe'));
self::assertEquals($employee, $this->_em->find(DDC3303Employee::CLASSNAME, 'John Doe'));
}
}
@ -79,6 +79,8 @@ class DDC3303Address
*/
class DDC3303Employee extends DDC3303Person
{
const CLASSNAME = __CLASS__;
/** @Column(type="string") @var string */
private $company;