application/Espo/Core/Upgrades/Actions/Extension/Install.php
protected function findExtension()
    {
        $manifest = $this->getManifest();

        $this->extensionEntity = $this->getEntityManager()->getRepository('Extension')->where(array(
            'name' => $manifest['name'],
            'isInstalled' => true,
        ))->findOne();

        return $this->extensionEntity;
    }
protected function findExtension()
    {
        $manifest = $this->getManifest();

        $this->extensionEntity = $this->getEntityManager()->getRepository('Extension')->where(array(
            'name' => $manifest['name'],
            'isInstalled' => true,
        ))->findOne();

        return $this->extensionEntity;
    }
protected function findExtension ( ) { $ manifest = $ this -> getManifest ( ) ; $ this -> extensionEntity = $ this -> getEntityManager ( ) -> getRepository ( 'Extension' ) -> where ( array ( 'name' => $ manifest [ 'name' ] , 'isInstalled' => true , ) ) -> findOne ( ) ; return $ this -> extensionEntity ; }
Find Extension entity

@return \Espo\Entities\Extension
Find Extension entity