Skip to content

How can a filter be made with having() #284

@dertin

Description

@dertin

Hello, the following is what I want to do:

SELECT *
FROM testing
GROUP BY foo
HAVING COUNT(foo) > 1

but it does not work.

$mapperTesting->all()->group(['foo'])->having(['COUNT(foo)' => '> 1'])->toArray();

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions