Newscoop\Doctrine\EventDispatcherProxy::getEntityName PHP Method

getEntityName() private method

Get entity name.
private getEntityName ( object $entity ) : string
$entity object
return string
    private function getEntityName($entity)
    {
        // TODO: fix this - it don't work for Newscoop\Image\ArticleImage etc.
        $class = str_replace('Newscoop\\Entity\\', '', get_class($entity));
        return strtolower(implode('-', explode('\\', $class)));
    }