ikucheriavenko
12/14/2017 - 11:17 AM

override repository of 3rd party class

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