public function testDisriminatedSimpleReferenceFails()
{
$d = new WrongSimpleRefDocument();
$r = new \Documents\Tournament\ParticipantSolo('Maciej');
$this->dm->persist($r);
$class = $this->dm->getClassMetadata(get_class($d));
$this->dm->createDBRef($r, $class->associationMappings['ref']);
}