Skip to content

Doctrine QueryBulder typehint #5

Closed
@simPod

Description

@simPod

Level 5 gives me such warnings: Parameter #4 $condition of method Doctrine\ORM\QueryBuilder::leftJoin() expects string|null, Doctrine\ORM\Query\Expr\Andx given

That happens when you dont use simple string conditions like this ->leftJoin('u.Phonenumbers', 'p', Expr\Join::WITH, 'p.is_primary = 1'); while joining but when using Expr builder instead. QueryBuilder's join functions document that argument as string|null but it also takes Expr

Do you think I should mark this warning as ignored?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions