Skip to content
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

[8.x] Add note to not use hasOne of many relation in PostgresSQL #7166

Closed
wants to merge 1 commit into from
Closed

Conversation

pushpak1300
Copy link
Contributor

@pushpak1300 pushpak1300 commented Jul 2, 2021

As mentioned in issue laravel/framework#37854.
and in the following comment laravel/framework#37362 (comment).
I noticed that Has One Of Many relationships is not working in PostgresSQL if we are using UUID as a primary key.

Regarding UUIDs, they are sortable by using (string) Str::orderedUuid() as your model UUIDs instead of the typical (string) Str::uuid().

I have used Str::orderedUuid() to generate the models primary key but still, this issue is there.
Until this issue get's resolved we should display the note on the website to save some debugging time for other users.

@taylorotwell
Copy link
Member

Better for us to research and fix the issue.

@pushpak1300
Copy link
Contributor Author

Sounds good @taylorotwell
I have created the example repository you can check and possibly try to reproduce the issue at your end.
laravel/framework#37854 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants