Skip to content

Commit

Permalink
fix(HasManyThrough): Fix for thread safety when loading multiple rela…
Browse files Browse the repository at this point in the history
…tionships off of a single entity
  • Loading branch information
elpete committed Mar 26, 2024
1 parent a31a52b commit 9e49f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/BaseEntity.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ component accessors="true" {
var foreignKeys = [];
var localKeys = [];

var predecessor = this;
var predecessor = this.clone( true );
for ( var i = 1; i <= arguments.relationships.len(); i++ ) {
var relationName = arguments.relationships[ i ];
var relationship = predecessor.ignoreLoadedGuard( function() {
Expand Down

0 comments on commit 9e49f55

Please sign in to comment.