Skip to content

Commit

Permalink
HHH-15602 Fix small typo
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov committed Apr 25, 2023
1 parent fc069af commit 48b34b0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -544,7 +544,7 @@ static void enter(@Advice.This Object self, @FieldValue Collection<?> field, @Ad
// 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 ) )
Expand Down

0 comments on commit 48b34b0

Please sign in to comment.