We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ee3068 commit bf3cec4Copy full SHA for bf3cec4
src/JsonApiDotNetCore/Data/DefaultEntityRepository.cs
@@ -178,7 +178,7 @@ public void DetachRelationshipPointers(TEntity entity)
178
179
foreach (var hasManyRelationship in _jsonApiContext.HasManyRelationshipPointers.Get())
180
{
181
- var hasMany = (HasOneAttribute) hasManyRelationship.Key;
+ var hasMany = (HasManyAttribute) hasManyRelationship.Key;
182
if (hasMany.EntityPropertyName != null)
183
184
var relatedList = (IList)entity.GetType().GetProperty(hasMany.EntityPropertyName)?.GetValue(entity);
0 commit comments