src/InfinityBase/Entity/EntityAwareTrait.php
protected function getEntityName()
    {
        if (null === $this->entityName) {
            $name             = get_class($this);
            $type             = ucfirst($this->abstractType);
            $name             = str_replace($this->getModuleNamespace() . '\\' . $type . '\\', '', $name);
            $name             = str_replace($type, '', $name);
            $this->entityName = $name;
        }
        return $this->entityName;
    }
protected function getEntityName()
    {
        if (null === $this->entityName) {
            $name             = get_class($this);
            $type             = ucfirst($this->abstractType);
            $name             = str_replace($this->getModuleNamespace() . '\\' . $type . '\\', '', $name);
            $name             = str_replace($type, '', $name);
            $this->entityName = $name;
        }
        return $this->entityName;
    }
protected function getEntityName ( ) { if ( null === $ this -> entityName ) { $ name = get_class ( $ this ) ; $ type = ucfirst ( $ this -> abstractType ) ; $ name = str_replace ( $ this -> getModuleNamespace ( ) . '\\' . $ type . '\\' , '' , $ name ) ; $ name = str_replace ( $ type , '' , $ name ) ; $ this -> entityName = $ name ; } return $ this -> entityName ; }
Retrieve the entity name

@return string
Retrieve the entity name