Skip to content

Commit

Permalink
Fixed insertion compiler for entities with no relations
Browse files Browse the repository at this point in the history
  • Loading branch information
TwentyFourMinutes committed Jul 21, 2020
1 parent b9f4ca9 commit 66b4f60
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ internal void Compile(Entity entity)

if (entity.Relations is null)
{
if (_visitedEntities.Count == 1)
{
_entityRelations.AddFirst(new EntityRelationHolder(entity));
}

return;
}

Expand Down

0 comments on commit 66b4f60

Please sign in to comment.