question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Entity Relationships Not Saving

See original GitHub issue

I’m submitting a …

- [ x ] bug report => search github for a similar issue before submitting 
- [ ] feature request
- [ ] support request => do not submit here, see https://2sxc.org/en/blog/post/moving-discussions-from-codeplex-to-stack-overflow
- [ ] not sure

…about

- [ ] edit experience / UI
- [ ] admin experience UI
- [ ] Razor templating
- [ ] JS development
- [ x ] Content Types or data management
- [ ] APIs like REST
- [ ] DNN parts
- [ ] other / unknown

Current behavior

I have a Entity field type defined for a Content Type. I select the Entity from the list and click Save. The page reloads but when I edit the content type gain the Entity hasn’t been saved.

Expected behavior

When selecting the entity from the list and clicking save, when editing the content type again, the previously selected entity should already be selected in the list

Minimal reproduction of the problem with instructions

Here’s a screencast of the issue happening, https://www.screencast.com/t/usmuxAxeJN1R

What is the motivation / use case for changing the behavior?

I would like to categorize some content to be able to apply filtering

Please tell us about your environment:

Server: Windows 2012 R2, IIS 9, SQL 2016 Express

  • 2sxc version(s): 9.3.0
  • Browser: [all | Chrome 59.|
  • DNN: | 9.1.0 ]
  • Language: [any/all | English ]

Anything you would like to add I’m also seeing a 400 error when trying to edit the field that is of the Entity type https://www.screencast.com/t/0H6lpwP6Wbw

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
iJungleboycommented, Aug 9, 2017

my guess: you have some (faulty) demo- or unpublished data which the template only receives when logged in - and that’s where it breaks. could you check that? for example by commenting out most of the template so you stop getting errors, then adding some test-code to check what’s in the variable.

1reaction
iJungleboycommented, Aug 2, 2017

thx! will look into this the next few days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

entity framework - Many to Many Relationships not saving
Many-to-many relationships are always Independent Associations which means they can never have a foreign key property in an entity. (Because the ...
Read more >
Saving Related Data - EF Core
Information on saving graphs of related entities and managing relationships in Entity Framework Core.
Read more >
Entity-framework – Many to Many Relationships not saving
I have two entities with a fairly standard Many to Many relationship that I created in EF 5 Code First. These are Service...
Read more >
Configure One-to-One relationship in Code First Entity ...
With the one-to-zero-or-one relationship, a Student can be saved without StudentAddress but the StudentAddress entity cannot be saved without the Student ...
Read more >
Issues creating a new object and adding one to many ...
When I run it, its not saving the new exercise name (exname is assigned to the value logic handler for that input), or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found