Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
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 |
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 |
public getObjectManager ( ) : Doctrine\ORM\EntityManagerInterface | ||
return | Doctrine\ORM\EntityManagerInterface |
public setEntityManager ( Doctrine\ORM\EntityManagerInterface $em ) | ||
$em | Doctrine\ORM\EntityManagerInterface |
public setPurgeMode ( $mode ) : void | ||
$mode | ||
return | void |