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

Virtual and stored column are not read only #1459

Open
nandi95 opened this issue Aug 17, 2023 · 0 comments
Open

Virtual and stored column are not read only #1459

nandi95 opened this issue Aug 17, 2023 · 0 comments
Labels

Comments

@nandi95
Copy link

nandi95 commented Aug 17, 2023

Versions:

  • ide-helper Version: 2.13.0
  • Laravel Version: 10.18.0
  • PHP Version: 8.2.8

Description:

The package seems to generate @property for columns in the database that are virtual columns or result of a stored procedure. I think these columns should be @property-read as they are meant to be read only (even-though you might change it on the model).

Steps To Reproduce:

Create a migration with a virtual or stored column:

$table->float('cost');
$table->float('unit_amount');
$table->float('unit_cost')->virtualAs('cost / unit_amount');
@nandi95 nandi95 added the bug label Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant