public function preUpdate(PreUpdateEventArgs &$eventArgs)
 {
     $entity = $eventArgs->getEntity();
     $this->compositePropertyService->flattenCompositeProperties($entity);
 }
 /**
  * @expectedException Doctrine\Common\Annotations\AnnotationException
  */
 public function testImproperCurrency()
 {
     $entity = new ImproperlyCurrencyAnnotatedTestEntity();
     // process the field mappings
     $this->compositePropertyService->flattenCompositeProperties($entity);
 }