HHH-15602 Fix small typo

This commit is contained in:
Christian Beikov 2023-04-25 08:25:45 +02:00
parent fc069afed7
commit 48b34b004a
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ class CodeTemplates {
// If this is the inverse side or the old collection is already initialized,
// we must remove self from the respective old collection elements inverse collections,
// because only the owning side is responsible for persisting the state.
if ( ( inverseSide || Hibernate.isInitialized( argument ) ) && getterSelf() != null ) {
if ( ( inverseSide || Hibernate.isInitialized( field ) ) && getterSelf() != null ) {
Object[] array = field.toArray();
for ( int i = 0; i < array.length; i++ ) {
if ( ( inverseSide || Hibernate.isPropertyInitialized( array[i], bidirectionalAttribute ) )