DebugKit\Model\Table\PanelsTable::findByRequest PHP Method

findByRequest() public method

Find panels by requestid
public findByRequest ( Query $query, array $options ) : Query
$query Cake\ORM\Query The query
$options array The options to use.
return Cake\ORM\Query The query.
    public function findByRequest(Query $query, array $options)
    {
        if (empty($options['requestId'])) {
            throw new \RuntimeException('Missing request id in findByRequest.');
        }
        return $query->where(['Panels.request_id' => $options['requestId']])->order(['Panels.title' => 'ASC']);
    }