| @@ 256-260 (lines=5) @@ | ||
| 253 | // Make sure the table with the version column is updated even if no columns on that |
|
| 254 | // table were affected. |
|
| 255 | if ($isVersioned) { |
|
| 256 | if ( ! isset($updateData[$versionedTable])) { |
|
| 257 | $tableName = $this->quoteStrategy->getTableName($versionedClass, $this->platform); |
|
| 258 | ||
| 259 | $this->updateTable($entity, $tableName, [], true); |
|
| 260 | } |
|
| 261 | ||
| 262 | $identifiers = $this->em->getUnitOfWork()->getEntityIdentifier($entity); |
|
| 263 | ||
| @@ 187-194 (lines=8) @@ | ||
| 184 | } elseif ($class->isInheritanceTypeJoined()) { |
|
| 185 | // Add all non-inherited fields as columns |
|
| 186 | foreach ($class->fieldMappings as $fieldName => $mapping) { |
|
| 187 | if ( ! isset($mapping['inherited'])) { |
|
| 188 | $columnName = $this->quoteStrategy->getColumnName( |
|
| 189 | $mapping['fieldName'], |
|
| 190 | $class, |
|
| 191 | $this->platform |
|
| 192 | ); |
|
| 193 | $this->gatherColumn($class, $mapping, $table); |
|
| 194 | } |
|
| 195 | } |
|
| 196 | ||
| 197 | $this->gatherRelationsSql($class, $table, $schema, $addedFks, $blacklistedFks); |
|