/**
  * @param object $entity
  * @param DependencyGraph $dependencyGraph
  */
 public function populateDependencyGraph($entity, DependencyGraph $dependencyGraph)
 {
     $reader = $this->getPropReader();
     $dependencies = [];
     $dependencyGraph->add($entity, $dependencies);
 }
 /**
  * @param object $entity
  * @param DependencyGraph $dependencyGraph
  */
 public function populateDependencyGraph($entity, DependencyGraph $dependencyGraph)
 {
     $reader = $this->getPropReader();
     $dependencies = [];
     if ($dep = $reader($entity, 'author')) {
         $dependencies[] = $dep;
     }
     $dependencyGraph->add($entity, $dependencies);
 }