File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/JsonApiDotNetCore/Data Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,9 @@ private IList GetTrackedManyRelationshipValue(IEnumerable<IIdentifiable> relatio
326
326
{
327
327
if ( relationshipValueList == null ) return null ;
328
328
bool _wasAlreadyAttached = false ;
329
+ /// if we're not using entity resource separation, we can just read off the related type
330
+ /// from the RelationshipAttribute. If we DO use separation, RelationshipAttribute.DependentType
331
+ /// will point to the Resource, not the Entity, which is not the one we need here.
329
332
bool entityResourceSeparation = relationshipAttr . EntityPropertyName != null ;
330
333
Type entityType = entityResourceSeparation ? null : relationshipAttr . DependentType ;
331
334
var trackedPointerCollection = relationshipValueList . Select ( pointer =>
You can’t perform that action at this time.
0 commit comments