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

Configure Constrain on ->load() #51

Closed
roxblnfk opened this issue Jan 15, 2020 · 1 comment
Closed

Configure Constrain on ->load() #51

roxblnfk opened this issue Jan 15, 2020 · 1 comment

Comments

@roxblnfk
Copy link
Member

It would be nice to be able to set a Constrain when using the ->load() method

@wolfy-j
Copy link
Contributor

wolfy-j commented Jan 15, 2020

I propose to improve load option and support callable instead. This way you can combine both of them. The initial concept was to use Constrains globally rather than custom to the selection.

$select->load('comments', ['load' => new PublicCmments()])

What do you think about it?

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

No branches or pull requests

2 participants