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

Bigint ids are not being treated as string in Attach Model view #6136

Closed
webard opened this issue Jan 7, 2024 · 1 comment
Closed

Bigint ids are not being treated as string in Attach Model view #6136

webard opened this issue Jan 7, 2024 · 1 comment
Labels
bug Verified bug by the Nova team fix incoming A fix is in review

Comments

@webard
Copy link

webard commented Jan 7, 2024

  • Laravel Version: 10.0.39
  • Nova Version: v4.32.11
  • PHP Version: 8.2.14
  • Database Driver & Version: MySQL 8.2.0
  • Operating System and Version: MacOS 14.2.1 (23C71)
  • Browser type and version: Chrome 120.0.6099.199

Description:

Probably related to that issues:

In my project I use Snowflake to generate IDs. Every place in Nova works fine, except view that is using to attach BelongsToMany relation:
image

In that view, IDs are "rounded" what causing validator error (trying to attach a model that does not exist).

Detailed steps to reproduce the issue on a fresh Nova installation:

  1. Use https://github.com/kra8/laravel-snowflake to handle IDs.
  2. Connect two models via belongsToMany field and try to attach something.
@crynobone crynobone added the bug Verified bug by the Nova team label Feb 12, 2024
@crynobone crynobone added the fix incoming A fix is in review label Feb 26, 2024
Copy link

github-actions bot commented Mar 3, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Projects
None yet
Development

No branches or pull requests

2 participants