-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
[Maker] Don't try to set read only properties #769
Comments
Hi @KDederichs yes, this sounds legit. Do you want to provide a PR? |
Sure I can look into it, I don't think that's the place for it though since that seems to be where it's adding defaults that are other factories specifically. Also I don't think you could use |
lol yeah sorry you're right, it's not the place to do it... I wanted to find some place we can make this check once for all... maybe in I'm just wondering what to do if |
Hmm It'd be all good if you assumed the user only has entities without constructor arguments since you then can grab the class and make a dummy object but I doubt that that's the case in real life :D As for the |
Little bit of an DX improvement:
Every time I generate new factories using the make:facrory command it'll try to set
createdAt
by default even though that value has no setter (it's set in the constructor)It would be awesome if the maker could skip over those read only properties so I don't have to go through all the factories manually and delete it :D
The text was updated successfully, but these errors were encountered: