Пример #1
0
 public function generateClass(ClassMetadata $metadata)
 {
     $outputDirectory = str_replace($metadata->getBundle()->getNamespace(), "", $metadata->getBundle()->getPath());
     $this->writeEntityRepositoryClass($metadata->getRepositoryClass(), $outputDirectory);
 }
Пример #2
0
 public function displayGeneralInformations(GeneratorStyle $io, ClassMetadata $metadata)
 {
     $io->table([], [['Name', $metadata->getEntityClassName()], ['Bundle', $metadata->getBundle()->getNamespace()], ['Namespace', $metadata->getName()], ['Repository', $metadata->customRepositoryClassName], ['Entity path', $metadata->getPath()], ['Repository path', $metadata->getRepositoryPath()]]);
     return $this;
 }