| @@ 77-81 (lines=5) @@ | ||
| 74 | $tables = $this->getAllTables(); |
|
| 75 | ||
| 76 | // make sure it exists |
|
| 77 | if (!isset($tables->$tableName)){ |
|
| 78 | $log->addStep("{$tableName} does not exist in the runtime config. creating empty table", function() use ($tables, $tableName){ |
|
| 79 | $tables->$tableName = new BaseObject(); |
|
| 80 | }); |
|
| 81 | } |
|
| 82 | ||
| 83 | // make sure we don't have a duplicate entry |
|
| 84 | if (isset($tables->$tableName->$key)){ |
|
| @@ 78-82 (lines=5) @@ | ||
| 75 | $tables = $this->getAllTables(); |
|
| 76 | ||
| 77 | // make sure the table |
|
| 78 | if (!isset($tables->$tableName)){ |
|
| 79 | $log->addStep("{$tableName} does not exist in the runtime config. creating empty table", function() use ($tables, $tableName){ |
|
| 80 | $tables->$tableName = new BaseObject(); |
|
| 81 | }); |
|
| 82 | } |
|
| 83 | if (!isset($tables->$tableName->$targetEnv)) { |
|
| 84 | $log->addStep("{$tableName}->{$targetEnv} does not exist in the runtime config. creating empty table", function() use($tables, $tableName, $targetEnv) { |
|
| 85 | $tables->$tableName->$targetEnv = new BaseObject(); |
|