public function __construct($className, \ReflectionClass $reflectionClass, NodeAnnotationMetadata $nodeAnnotationMetadata, EntityIdMetadata $entityIdMetadata, array $entityPropertiesMetadata, array $simpleRelationshipsMetadata)
{
parent::__construct($entityIdMetadata, $className, $reflectionClass, $entityPropertiesMetadata);
$this->nodeAnnotationMetadata = $nodeAnnotationMetadata;
$this->customRepository = $this->nodeAnnotationMetadata->getCustomRepository();
foreach ($entityPropertiesMetadata as $o) {
if ($o instanceof LabeledPropertyMetadata) {
$this->labeledPropertiesMetadata[$o->getPropertyName()] = $o;
}
}
foreach ($simpleRelationshipsMetadata as $relationshipMetadata) {
$this->relationships[$relationshipMetadata->getPropertyName()] = $relationshipMetadata;
}
}