#5867 s/::class/::CLASSNAME for PHP 5.4 compat
This commit is contained in:
parent
2af84c6025
commit
b183818fa8
@ -9,7 +9,7 @@ class DDC3303Test extends OrmFunctionalTestCase
|
|||||||
{
|
{
|
||||||
parent::setUp();
|
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->flush();
|
||||||
$this->_em->clear();
|
$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
|
class DDC3303Employee extends DDC3303Person
|
||||||
{
|
{
|
||||||
|
const CLASSNAME = __CLASS__;
|
||||||
|
|
||||||
/** @Column(type="string") @var string */
|
/** @Column(type="string") @var string */
|
||||||
private $company;
|
private $company;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user