public function generateClass(ClassMetadata $metadata)
 {
     $outputDirectory = str_replace($metadata->getBundle()->getNamespace(), "", $metadata->getBundle()->getPath());
     $this->writeEntityRepositoryClass($metadata->getRepositoryClass(), $outputDirectory);
 }
Example #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;
 }