/**
  * @param Manager $manager
  * @param object $instance
  * @param ClassMetadata $classMetadata
  */
 private static function handleRelationsOneToMany(Manager $manager, $instance, ClassMetadata $classMetadata)
 {
     foreach ($classMetadata->getRelationsOneToMany() as $propertyName => $relationData) {
         $targetEntityAttributes = $manager->createClassMetadata($relationData['entity']);
         self::setPropertyValue($instance, $propertyName, new ResultCollection($instance, $manager, $targetEntityAttributes, $relationData));
     }
 }