Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix(repository): revert hasOne target FK as PK implementation #2147
Remove attempt at guaranteeing the foreign key of a has one relation to be unique by using it
TODO: docs for the
Dec 12, 2018
5 checks passed
Actually the changes do not guarantee uniqueness of the relation in any way, it is up to our users to set up the underlying database to be used instead of LoopBack doing so since we couldn't find a generic approach for it and need to investigate how to deliver a robust solution. You can find more info at #1718 (comment) and #2161.
Please create a new GitHub issue for this missing feature.
I am going to lock this pull request to collaborators only, please open new issues for any new discussions.