DDC-2704 - covering code handling class metadata skipping of static properties
This commit is contained in:
parent
3df9b4d122
commit
30dcece125
2 changed files with 13 additions and 0 deletions
|
@ -46,6 +46,13 @@ abstract class AbstractContentItem
|
|||
*/
|
||||
private $nodeIsLoaded = false;
|
||||
|
||||
/**
|
||||
* This field is transient on purpose
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
public static $fileSystem;
|
||||
|
||||
public function __construct(Directory $parentDir = null)
|
||||
{
|
||||
$this->parentDirectory = $parentDir;
|
||||
|
|
|
@ -1188,6 +1188,12 @@ class ClassMetadataTest extends \Doctrine\Tests\OrmTestCase
|
|||
],
|
||||
$propertyNames
|
||||
);
|
||||
|
||||
$this->assertNotContains(
|
||||
'Doctrine\Tests\Models\DirectoryTree\AbstractContentItem::fileSystem',
|
||||
$propertyNames,
|
||||
'Abstract properties should not be part of class metadata information'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue