-
-
Notifications
You must be signed in to change notification settings - Fork 158
Can´t create entity with two HasOne attributes pointing to same entity #322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
3 tasks
#333 opened for fix. I plan on rolling out in v2.3.5 today or tomorrow. |
jaredcnance
added a commit
that referenced
this issue
Jul 5, 2018
fix(relationship pointers): key pointers by RelationshipAttribute
Thank you ! I'll try it when new version will be out. Fix looks great 👍 |
I am bundling it with some fixes for json:api v1.1 operations. This shouldn't impact you unless you're using bulk operations but the version has been bumped to v2.4.0-beta1 |
I tried 2.4.0-beta1 (I don't use operations ) and now everythink is ok. Thank you 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have two entities Client and ClientRelation. ClientRelation only stores two Client foreign keys and their relation
ClientRelation looks like this
After upgrade to version 2.3.2 or 2.3.3, POST on this entity throws exception:
Post request looks like this:
In version 2.3.1 everything is OK. I think that is somehow caused by new method AttachHasOnePointers() in DefaultEntityRepository. Do you know, what could be a problem?
The text was updated successfully, but these errors were encountered: