Свойство | Type | Description | |
---|---|---|---|
$logger | Psr\Log\LoggerInterface | ||
$managers |
Méthode | Description | |
---|---|---|
__construct ( Psr\Log\LoggerInterface $logger = null ) | ||
getManager ( string $name ) : |
Get a registered entity manager | |
listManagers ( ) : string[] | List all registered entity managers | |
portTable ( string $class_name, string $source, string $destination, integer $batch_size = 100 ) | Port an entire database table from one database to another | |
registerManager ( string $name, |
Register an entity manager | |
setLogger ( Psr\Log\LoggerInterface $logger ) : null | Sets a logger instance on the object |
public __construct ( Psr\Log\LoggerInterface $logger = null ) | ||
$logger | Psr\Log\LoggerInterface |
public getManager ( string $name ) : |
||
$name | string | |
Résultat |
public listManagers ( ) : string[] | ||
Résultat | string[] |
public portTable ( string $class_name, string $source, string $destination, integer $batch_size = 100 ) | ||
$class_name | string | Fully qualified class name of entity to port |
$source | string | Source database name set when registering managers |
$destination | string | Target database name set when registering managers |
$batch_size | integer | Number of entities to persist before flushing the destination manager |
public registerManager ( string $name, |
||
$name | string | A short name to reference this manager during portation |
$manager | Entity manager with driver to a source/target database |
protected LoggerInterface,Psr\Log $logger | ||
Résultat | Psr\Log\LoggerInterface |