PHP 클래스 Doctrine\Common\DataFixtures\Purger\ORMPurger

저자: Jonathan H. Wage ([email protected])
상속: implements Doctrine\Common\DataFixtures\Purger\PurgerInterface
파일 보기 프로젝트 열기: doctrine/data-fixtures 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Doctrine\ORM\EntityManagerInterface $em = null, array $excluded = [] ) Construct new purger instance.
getObjectManager ( ) : Doctrine\ORM\EntityManagerInterface Retrieve the EntityManagerInterface instance this purger instance is using.
getPurgeMode ( ) : integer Get the purge mode
purge ( )
setEntityManager ( Doctrine\ORM\EntityManagerInterface $em ) Set the EntityManagerInterface instance this purger instance should use.
setPurgeMode ( $mode ) : void Set the purge mode

비공개 메소드들

메소드 설명
getAssociationTables ( array $classes, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : array
getCommitOrder ( Doctrine\ORM\EntityManagerInterface $em, array $classes ) : Doctrine\ORM\Mapping\ClassMetadata[]
getJoinTableName ( $assoc, Doctrine\ORM\Mapping\ClassMetadata $class, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
getTableName ( Doctrine\ORM\Mapping\ClassMetadata $class, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string

메소드 상세

__construct() 공개 메소드

Construct new purger instance.
public __construct ( Doctrine\ORM\EntityManagerInterface $em = null, array $excluded = [] )
$em Doctrine\ORM\EntityManagerInterface EntityManagerInterface instance used for persistence.
$excluded array array of table/view names to be excleded from purge

getObjectManager() 공개 메소드

Retrieve the EntityManagerInterface instance this purger instance is using.
public getObjectManager ( ) : Doctrine\ORM\EntityManagerInterface
리턴 Doctrine\ORM\EntityManagerInterface

getPurgeMode() 공개 메소드

Get the purge mode
public getPurgeMode ( ) : integer
리턴 integer

purge() 공개 메소드

public purge ( )

setEntityManager() 공개 메소드

Set the EntityManagerInterface instance this purger instance should use.
public setEntityManager ( Doctrine\ORM\EntityManagerInterface $em )
$em Doctrine\ORM\EntityManagerInterface

setPurgeMode() 공개 메소드

Set the purge mode
public setPurgeMode ( $mode ) : void
$mode
리턴 void