Свойство | Type | Description | |
---|---|---|---|
$output | array |
Свойство | Type | Description | |
---|---|---|---|
$entityManager | Doctrine\Common\Persistence\ObjectManager | ||
$environment | |||
$packageManager | Neos\Flow\Package\PackageManagerInterface | ||
$settings | array |
Méthode | Description | |
---|---|---|
compileProxies ( ) : void | Compiles the Doctrine proxy class code using the Doctrine ProxyFactory. | |
createSchema ( string $outputPathAndFilename = null ) : string | Creates the needed DB schema using Doctrine's SchemaTool. If tables already exist, this will throw an exception. | |
executeMigration ( string $version, string $direction = 'up', string $outputPathAndFilename = null, boolean $dryRun = false ) : string | Execute a single migration in up or down direction. If $path is given, the SQL statements will be written to the file in $path instead of executed. | |
executeMigrations ( string $version = null, string $outputPathAndFilename = null, boolean $dryRun = false, boolean $quiet = false ) : string | Execute all new migrations, up to $version if given. | |
generateMigration ( boolean $diffAgainstCurrent = true, string $filterExpression = null ) : string | Generates a new migration file and returns the path to it. | |
getDatabasePlatformName ( ) : string | Get name of current database platform | |
getEntityStatus ( ) : array | Returns information about which entities exist and possibly if their mapping information contains errors or not. | |
getForeignKeyHandlingSql ( Doctrine\DBAL\Schema\Schema $schema, Doctrine\DBAL\Platforms\AbstractPlatform $platform, array $tableNames, string $search, string $replace ) : array | This serves a rather strange use case: renaming columns used in FK constraints. | |
getMigrationStatus ( boolean $showMigrations = false, boolean $showDescriptions = false ) : string | Returns the current migration status formatted as plain text. | |
markAsMigrated ( string $version, boolean $markAsMigrated ) : void | Add a migration version to the migrations table or remove it. | |
runDql ( string $dql, integer $hydrationMode = Doctrine\ORM\Query::HYDRATE_OBJECT, integer $firstResult = null, integer $maxResult = null ) : mixed | Run DQL and return the result as-is. | |
updateSchema ( boolean $safeMode = true, string $outputPathAndFilename = null ) : string | Updates the DB schema using Doctrine's SchemaTool. The $safeMode flag is passed to SchemaTool unchanged. | |
validateMapping ( ) : array | Validates the metadata mapping for Doctrine, using the SchemaValidator of Doctrine. |
Méthode | Description | |
---|---|---|
buildCodeFromSql ( |
Returns PHP code for a migration file that "executes" the given array of SQL statements. | |
getFormattedVersionAlias ( string $alias, |
Returns a formatted version string for the alias. | |
getMigrationConfiguration ( ) : |
Return the configuration needed for Migrations. | |
getMigrationDescription ( |
Returns the description of a migration. | |
getPackageKeyFromMigrationVersion ( |
Tries to find out a package key which the Version belongs to. If no package could be found, an empty string is returned. | |
writeMigrationClassToFile ( |
Méthode | Description | |
---|---|---|
resolveTableName ( string $name ) : string | Resolve a table name from its fully qualified name. The $name argument comes from Doctrine\DBAL\Schema\Table#getName which can sometimes return a namespaced name with the form {namespace}.{tableName}. This extracts the table name from that. |
protected buildCodeFromSql ( |
||
$configuration | ||
$sql | array | |
Résultat | string |
public compileProxies ( ) : void | ||
Résultat | void |
public createSchema ( string $outputPathAndFilename = null ) : string | ||
$outputPathAndFilename | string | A file to write SQL to, instead of executing it |
Résultat | string |
public executeMigration ( string $version, string $direction = 'up', string $outputPathAndFilename = null, boolean $dryRun = false ) : string | ||
$version | string | The version to migrate to |
$direction | string | |
$outputPathAndFilename | string | A file to write SQL to, instead of executing it |
$dryRun | boolean | Whether to do a dry run or not |
Résultat | string |
public executeMigrations ( string $version = null, string $outputPathAndFilename = null, boolean $dryRun = false, boolean $quiet = false ) : string | ||
$version | string | The version to migrate to |
$outputPathAndFilename | string | A file to write SQL to, instead of executing it |
$dryRun | boolean | Whether to do a dry run or not |
$quiet | boolean | Whether to do a quiet run or not |
Résultat | string |
public getDatabasePlatformName ( ) : string | ||
Résultat | string |
public getEntityStatus ( ) : array | ||
Résultat | array |
public static getForeignKeyHandlingSql ( Doctrine\DBAL\Schema\Schema $schema, Doctrine\DBAL\Platforms\AbstractPlatform $platform, array $tableNames, string $search, string $replace ) : array | ||
$schema | Doctrine\DBAL\Schema\Schema | |
$platform | Doctrine\DBAL\Platforms\AbstractPlatform | |
$tableNames | array | |
$search | string | |
$replace | string | |
Résultat | array |
protected getFormattedVersionAlias ( string $alias, |
||
$alias | string | |
$configuration | ||
Résultat | string |
protected getMigrationConfiguration ( ) : |
||
Résultat |
protected getMigrationDescription ( |
||
$version | ||
$parser | ||
Résultat | string |
protected getPackageKeyFromMigrationVersion ( |
||
$version | ||
Résultat | string |
public validateMapping ( ) : array | ||
Résultat | array |
protected ObjectManager,Doctrine\Common\Persistence $entityManager | ||
Résultat | Doctrine\Common\Persistence\ObjectManager |
protected Environment,Neos\Flow\Utility $environment | ||
Résultat |
protected PackageManagerInterface,Neos\Flow\Package $packageManager | ||
Résultat | Neos\Flow\Package\PackageManagerInterface |