1
0
mirror of synced 2025-01-18 22:41:43 +03:00

DDC-2704 - covering code handling class metadata skipping of static properties

This commit is contained in:
Marco Pivetta 2015-01-20 15:30:47 +01:00
parent 3df9b4d122
commit 30dcece125
2 changed files with 13 additions and 0 deletions

View File

@ -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;

View File

@ -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'
);
}
}