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

HasOne #5

Open
Noogic opened this issue Oct 18, 2018 · 0 comments
Open

HasOne #5

Noogic opened this issue Oct 18, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@Noogic
Copy link
Owner

Noogic commented Oct 18, 2018

Add hasOne relation so, for each instance created it also creates any of the hasOne relations, automatically associating them to the instance.

For example, the UserBuilder could have the account method so you can specify if you want to create the user with an account and also specify which account to use, but it the account must always be created, then you shouldn't be required to call the account method any time, so just by specifying
protected $hasOne = [Account::class] it automatically should create it.

@Noogic Noogic added the enhancement New feature or request label Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant