PHP Class Ojs\CoreBundle\Service\DeleteService

Datei anzeigen Open project: ojs/ojs

Protected Properties

Property Type Description
$em Doctrine\ORM\EntityManager

Public Methods

Method Description
__construct ( Symfony\Bridge\Doctrine\RegistryInterface $registry, Doctrine\Common\Annotations\Reader $reader, Symfony\Component\Translation\TranslatorInterface $translator, $rootDir, $bundles ) DeleteService constructor.
check ( $entity )

Private Methods

Method Description
checkUse ( ) : boolean
findRelations ( array $usage ) : array
loadAllOptions ( ) : boolean
preDelete ( ) : boolean
setupReflClass ( ) return void
setupYamlOptions ( ) : boolean

Method Details

__construct() public method

DeleteService constructor.
public __construct ( Symfony\Bridge\Doctrine\RegistryInterface $registry, Doctrine\Common\Annotations\Reader $reader, Symfony\Component\Translation\TranslatorInterface $translator, $rootDir, $bundles )
$registry Symfony\Bridge\Doctrine\RegistryInterface
$reader Doctrine\Common\Annotations\Reader
$translator Symfony\Component\Translation\TranslatorInterface

check() public method

public check ( $entity )
$entity

Property Details

$em protected_oe property

protected EntityManager,Doctrine\ORM $em
return Doctrine\ORM\EntityManager