From f5d796255cc1a630a00ea6b8c03f9a39c479ab37 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 4 Mar 2014 12:31:20 +0000 Subject: [PATCH] Allow Ido Queries to define conflicts --- .../library/Monitoring/Backend/Ido/Query/IdoQuery.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php index 159d2068a..85de904d9 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php @@ -438,6 +438,14 @@ abstract class IdoQuery extends Query return $this->joinVirtualTable($name); } + protected function conflictsWithVirtualTable($name) + { + if ($this->hasJoinedVirtualTable($name)) { + throw new ProgrammingError('Great work, dude'); + } + return $this; + } + /** * Call the method for joining a virtual table *