Property | Type | Description | |
---|---|---|---|
$output | array |
Property | Type | Description | |
---|---|---|---|
$entityManager | Doctrine\Common\Persistence\ObjectManager | ||
$environment | |||
$packageManager | Neos\Flow\Package\PackageManagerInterface | ||
$settings | array |
Method | 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. |
Method | 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 ( |
Method | 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 | |
return | string |
public compileProxies ( ) : void | ||
return | void |
public createSchema ( string $outputPathAndFilename = null ) : string | ||
$outputPathAndFilename | string | A file to write SQL to, instead of executing it |
return | 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 |
return | 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 |
return | string |
public getDatabasePlatformName ( ) : string | ||
return | string |
public getEntityStatus ( ) : array | ||
return | 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 | |
return | array |
protected getFormattedVersionAlias ( string $alias, |
||
$alias | string | |
$configuration | ||
return | string |
protected getMigrationConfiguration ( ) : |
||
return |
protected getMigrationDescription ( |
||
$version | ||
$parser | ||
return | string |
protected getPackageKeyFromMigrationVersion ( |
||
$version | ||
return | string |
public validateMapping ( ) : array | ||
return | array |
protected ObjectManager,Doctrine\Common\Persistence $entityManager | ||
return | Doctrine\Common\Persistence\ObjectManager |
protected Environment,Neos\Flow\Utility $environment | ||
return |
protected PackageManagerInterface,Neos\Flow\Package $packageManager | ||
return | Neos\Flow\Package\PackageManagerInterface |