src/Valkyrja/ORM/Repositories/PDORepository.php
public function findBy(
        array $criteria,
        array $orderBy = null,
        int $limit = null,
        int $offset = null,
        array $columns = null,
        bool $getRelations = null
    ): array {
        return $this->select($columns, $criteria, $orderBy, $limit, $offset, $getRelations);
    }
public function findBy(
        array $criteria,
        array $orderBy = null,
        int $limit = null,
        int $offset = null,
        array $columns = null,
        bool $getRelations = null
    ): array {
        return $this->select($columns, $criteria, $orderBy, $limit, $offset, $getRelations);
    }
Find entities by given criteria.

<code>
$repository
->findBy(
[
'column'  => 'value',
'column2' => 'value2',
],
[
'column'
'column2' => OrderBy::ASC,
'column3' => OrderBy::DESC,
],
1,
1
)
</code>

@param array      $criteria
@param array|null $orderBy
@param int|null   $limit
@param int|null   $offset
@param array|null $columns
@param bool|null  $getRelations

@throws InvalidArgumentException

@return \Valkyrja\ORM\Entity[]