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

Cycle\ORM\Select::load options docs required #153

Open
gam6itko opened this issue Jul 5, 2023 · 1 comment
Open

Cycle\ORM\Select::load options docs required #153

gam6itko opened this issue Jul 5, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@gam6itko
Copy link
Contributor

gam6itko commented Jul 5, 2023

I really need a page with a description of the load method options

        $countryList = $select
            ->load('cities', [
                'orderBy' => ['name' => 'ASC'],
                'where' => [
                    'deleted_at' => null,
                ],
                // etc
            ])
            ->orderBy('name')
            ->fetchData();

Also we need more examples for with method.

@roxblnfk roxblnfk added the good first issue Good for newcomers label Jul 5, 2023
@roxblnfk
Copy link
Member

roxblnfk commented Jul 5, 2023

All available options you can find the $options property of a RelationLoader. For example there:
\Cycle\ORM\Select\Loader\HasManyLoader::$options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Todo
Development

No branches or pull requests

2 participants