Skip to content

#22 prevent save property same name as function #23

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

Conversation

hfmiguel
Copy link

  • Add new column for "foo_child" table to link with the table "foo".
  • Add to Virtual Column a new rule to prevent store relationships names in the "data" column.
  • Add properly testing cases.

image

hfmiguel added 2 commits May 12, 2025 17:23
- Add to Virtual Column a new rule to prevent store relationships names in the "data" column.
@hfmiguel
Copy link
Author

#22

@stancl
Copy link
Member

stancl commented May 12, 2025

With this specific reproduction code I'm not sure if we want to change this. If you specifically override the relationship name with a custom value, I think that should be respected? I'd expect Laravel to behave the same way if you added a foo.bar column, it'd be reasonable for $foo->bar to return foo.bar rather than using a relation.

@stancl stancl closed this Jul 22, 2025
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