private function objHasRelationToLoad(ClassRelationsMetadataObtainerInterface $classRelationsObtainer, $obj, RelationToLoad $relationToLoad)
 {
     $classRelationsDef = $classRelationsObtainer->__invoke(get_class($obj));
     foreach ($classRelationsDef->getRelationsDefinitions() as $r) {
         $dataToLoad = $this->dataAccessor->get($obj, $r->getName());
         if ($relationToLoad->getNotLoadedRelation() == $dataToLoad) {
             return true;
         }
     }
     return false;
 }
 /**
  * @return RelationTypeProcessorInterface
  */
 private function getRelationTypeProcessor(RelationToLoad $relationToLoad)
 {
     return call_user_func($this->relationTypeProcessorObtainer, $relationToLoad->getRelationDefinition()->getType());
 }