console\controllers\MigrateController generateMigrationSourceCode()

generateMigrationSourceCode() protected method (available since version 2.0.8)

Generates new migration source PHP code.

Child class may override this method, adding extra logic or variation to the process.

protected string generateMigrationSourceCode ( $params )
$params array

Generation parameters, usually following parameters are present:

  • name: string migration base name
  • className: string migration class name
return string

Generated PHP code.

doc_Yii
2016-10-30 16:55:19
Comments
Leave a Comment

Please login to continue.