Skip to content

Commit bf3cec4

Browse files
committed
fix copy pasta
1 parent 5ee3068 commit bf3cec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Data/DefaultEntityRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void DetachRelationshipPointers(TEntity entity)
178178

179179
foreach (var hasManyRelationship in _jsonApiContext.HasManyRelationshipPointers.Get())
180180
{
181-
var hasMany = (HasOneAttribute) hasManyRelationship.Key;
181+
var hasMany = (HasManyAttribute) hasManyRelationship.Key;
182182
if (hasMany.EntityPropertyName != null)
183183
{
184184
var relatedList = (IList)entity.GetType().GetProperty(hasMany.EntityPropertyName)?.GetValue(entity);

0 commit comments

Comments
 (0)