@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | public function create() |
| 45 | 45 | { |
| 46 | 46 | $migrationName = ModelsInterface::MIGRATION_CREATE . PhpInterface::UNDERSCORE . |
| 47 | - $this->tableName . |
|
| 48 | - PhpInterface::UNDERSCORE . ModelsInterface::MIGRATION_TABLE; |
|
| 47 | + $this->tableName . |
|
| 48 | + PhpInterface::UNDERSCORE . ModelsInterface::MIGRATION_TABLE; |
|
| 49 | 49 | $attrKey = $this->generator->objectName . CustomsInterface::CUSTOM_TYPES_ATTRIBUTES; |
| 50 | 50 | |
| 51 | 51 | $isFileExist = FileManager::migrationNotExists($this->generator, $migrationName); |
@@ -80,20 +80,20 @@ discard block |
||
| 80 | 80 | foreach($relations as $relationEntity) |
| 81 | 81 | { |
| 82 | 82 | $entityFile = $this->generator->formatEntitiesPath() |
| 83 | - . PhpInterface::SLASH . |
|
| 84 | - $this->generator->objectName . |
|
| 85 | - ucfirst($relationEntity) . |
|
| 86 | - PhpInterface::PHP_EXT; |
|
| 83 | + . PhpInterface::SLASH . |
|
| 84 | + $this->generator->objectName . |
|
| 85 | + ucfirst($relationEntity) . |
|
| 86 | + PhpInterface::PHP_EXT; |
|
| 87 | 87 | if(file_exists($entityFile)) |
| 88 | 88 | { |
| 89 | 89 | $this->setPivotContent($relationEntity); |
| 90 | 90 | |
| 91 | 91 | $migrationMask = date(self::PATTERN_TIME) . (self::$counter + 1); |
| 92 | 92 | $migrationName = ModelsInterface::MIGRATION_CREATE . PhpInterface::UNDERSCORE |
| 93 | - . $this->tableName |
|
| 94 | - . PhpInterface::UNDERSCORE . |
|
| 95 | - MigrationsHelper::getTableName($relationEntity) . |
|
| 96 | - PhpInterface::UNDERSCORE . ModelsInterface::MIGRATION_TABLE; |
|
| 93 | + . $this->tableName |
|
| 94 | + . PhpInterface::UNDERSCORE . |
|
| 95 | + MigrationsHelper::getTableName($relationEntity) . |
|
| 96 | + PhpInterface::UNDERSCORE . ModelsInterface::MIGRATION_TABLE; |
|
| 97 | 97 | |
| 98 | 98 | if(FileManager::migrationNotExists($this->generator, $migrationName)) |
| 99 | 99 | { |