From 5caffa78e20baca3c66c0a6260e5d7586e95e7c7 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 15 Apr 2014 17:53:07 +0200 Subject: [PATCH] CommentQuery: Rename baseQuery to select --- .../library/Monitoring/Backend/Ido/Query/CommentQuery.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php index 78839665e..f74e99622 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php @@ -51,17 +51,16 @@ class CommentQuery extends IdoQuery protected function joinBaseTables() { - $this->baseQuery = $this->db->select()->from( + $this->select->from( array('cm' => $this->prefix . 'comments'), array() ); - $this->baseQuery->joinLeft( + $this->select->joinLeft( array('ho' => $this->prefix . 'objects'), 'cm.object_id = ho.object_id AND ho.is_active = 1 AND ho.objecttype_id = 1', array() ); - - $this->baseQuery->joinLeft( + $this->select->joinLeft( array('so' => $this->prefix . 'objects'), 'cm.object_id = so.object_id AND so.is_active = 1 AND so.objecttype_id = 2', array()