/**
  * @param RelationshipMetaData
  * @param RelationshipMetaData
  */
 protected function checkIntegrityCallback(RelationshipMetaData $parent, RelationshipMetaData $child)
 {
     if ($parent === $child) {
         $parent->mapped = self::MAPPED_BOTH;
     } else {
         $pm = $parent->getWhereIsMapped();
         $cm = $child->getWhereIsMapped();
         if ($pm === self::MAPPED_HERE and $cm === self::MAPPED_HERE) {
             throw new RelationshipLoaderException("{$parent->parentEntityName}::\${$parent->parentParam} a {$child->parentEntityName}::\${$parent->childParam} {{$parent->type}} u ubou je nastaveno ze se na jeho strane ma mapovat, je potreba vybrat a mapovat jen podle jedne strany");
         }
         if ($pm === self::MAPPED_THERE and $cm === self::MAPPED_THERE) {
             throw new RelationshipLoaderException("{$parent->parentEntityName}::\${$parent->parentParam} a {$child->parentEntityName}::\${$parent->childParam} {{$parent->type}} ani u jednoho neni nastaveno ze se podle neho ma mapovat. napÅ™: {m:m {$parent->repository} {$parent->childParam} mapped}");
         }
     }
 }