if ($entity instanceof EntityTranslationDefinition
) { continue;
} if ($entity instanceof MappingEntityDefinition
) { continue;
} $classes[$this->
getFile($entity)] =
$this->
generate($entity);
$content =
$this->
updateDefinition($entity);
if ($content !== null
) { $classes[$this->
getDefinitionFile($entity)] =
$content;
} $services[] =
$this->
generateService($entity);
} $io->
success('Created schema in ' .
$this->dir
);
foreach ($classes as $file =>
$content) { $file =
rtrim($this->dir, '/'
) . '/' .
$file;
try { file_put_contents($file,
$content);
}