mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
CommentController: Call with() only once
This commit is contained in:
parent
23c498c3b9
commit
0b453a3eab
1 changed files with 1 additions and 3 deletions
|
|
@ -27,9 +27,7 @@ class CommentController extends Controller
|
|||
|
||||
$name = $this->params->shiftRequired('name');
|
||||
|
||||
$query = Comment::on($this->getDb())
|
||||
->with('host')
|
||||
->with('host.state');
|
||||
$query = Comment::on($this->getDb())->with(['host', 'host.state']);
|
||||
|
||||
$query->getSelectBase()
|
||||
->where(['comment.name = ?' => $name]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue