public function loadClassMetadata(LoadClassMetadataEventArgs &$eventArgs)
 {
     /**
      * @var $classMetadata \Doctrine\Common\Persistence\Mapping\ClassMetadata
      */
     $classMetadata = $eventArgs->getClassMetadata();
     /**
      * @var $reflectionClass \ReflectionClass
      */
     $reflectionClass = $classMetadata->getReflectionClass();
     $this->compositePropertyService->addCompositePropertiesClassMetadata($reflectionClass, $classMetadata);
 }
 /**
  * @expectedException Doctrine\Common\Annotations\AnnotationException
  */
 public function testImproperCurrency()
 {
     $entity = new ImproperlyCurrencyAnnotatedTestEntity();
     // process the field mappings
     $this->compositePropertyService->flattenCompositeProperties($entity);
 }