/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/src/Model/Table
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/src/Model/Table/PanelsTable.php (2571B)
belongsTo('DebugKit.Requests');
$this->ensureTables(['DebugKit.Requests', 'DebugKit.Panels']);
}
/**
* Find panels by requestid
*
* @param \Cake\ORM\Query $query The query
* @param array $options The options to use.
* @return \Cake\ORM\Query The query.
* @throws \RuntimeException
*/
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']);
}
/**
* DebugKit tables are special.
*
* @return string
*/
public static function defaultConnectionName(): string
{
return 'debug_kit';
}
}