private function overrideLoggableLogEntryRepository(LoadClassMetadataEventArgs $args)
- {
- $classMetadata = $args->getClassMetadata();
- if ('Gedmo\Loggable\Entity\LogEntry' === $classMetadata->name) {
- $classMetadata->customRepositoryClassName = 'AppBundle\Entity\Repository\AppLogEntryRepository';
- }
- }