Beispiel #1
0
 /**
  * Assigns the repository of any aggregate root to all it's
  * subclasses, unless they are aggregate root already.
  *
  * @param \TYPO3\FLOW3\Reflection\ClassSchema $classSchema
  * @return void
  */
 protected function makeChildClassesAggregateRoot(\TYPO3\FLOW3\Reflection\ClassSchema $classSchema)
 {
     foreach ($this->getAllSubClassNamesForClass($classSchema->getClassName()) as $childClassName) {
         if ($this->classSchemata[$childClassName]->isAggregateRoot()) {
             continue;
         } else {
             $this->classSchemata[$childClassName]->setRepositoryClassName($classSchema->getRepositoryClassName());
             $this->makeChildClassesAggregateRoot($this->classSchemata[$childClassName]);
         }
     }
 }