43 $config = Startup::getConfig ();
44 CacheManager::start ( $config );
45 $models = CacheManager::getModels ( $config,
true, $this->database );
46 if (\count ( $models ) !== 0) {
47 foreach ( $models as $model ) {
48 $yumlR =
new ClassToYuml ( $model, $this->displayProperties,
false, $this->displayMethods, $this->displayMethodsParams, $this->displayPropertiesTypes,
false );
49 $yumlR->loadManyToManys ();
50 $yumlResult [] = $yumlR;
52 if ($this->displayAssociations) {
53 $count = \count ( $models );
54 for($i = 0; $i < $count; $i ++) {
55 $this->
checkManyToManys ( $yumlResult [$i]->getExtManyToManys (), $yumlResult [$i] );
57 for($i = 0; $i < $count; $i ++) {
58 $result = $yumlResult [$i]->oneToManyTostring ();
59 if (UString::isNotNull ( $result )) {
60 $yumlResult [] = $result;
62 $result = $yumlResult [$i]->manyToManyTostring (
false );
63 if (UString::isNotNull ( $result )) {
64 $yumlResult [] = $result;
69 $this->manyToManys = [ ];
75 if (\array_search ( \md5 ( $class .
'_' . $targetClass ), $this->manyToManys ) !==
false || \array_search ( \md5 ( $targetClass .
'_' . $class ), $this->manyToManys ) !==
false) {
78 $this->manyToManys [] = \md5 ( $class .
'_' . $targetClass );