database icon indicating copy to clipboard operation
database copied to clipboard

[Bug]: AbstractLoader::JOIN (or LEFT_JOIN) for public use

Open gam6itko opened this issue 1 year ago • 0 comments

No duplicates 🥲.

  • [X] I have searched for a similar issue in our bug tracker and didn't find any solutions.

Describe the bug

I often use constructions like

$select = $this->getOrm()->getRepository(Country::class)
    ->select()
    ->with('translation', [
        'as' => 'trans',
        'method' => JoinableLoader::LEFT_JOIN, //internal
        'where' => [
            'locale_id' => 1,
        ],
]);

but the psalm generates errors

 InternalClass - App\MyClass.php:164:34 - Cycle\ORM\Select\JoinableLoader is internal to Cycle but called from App\MyClass (see https://psalm.dev/174)

Pleas make not internal constant which I use without psalm errors.

Is this a regression?

No

To Reproduce

see above

Expected behaviour

see above

Media prove

No response

Database

MySQL

Your environment

No response

Additional context

No response

gam6itko avatar May 20 '24 12:05 gam6itko