Allow Ido Queries to define conflicts

This commit is contained in:
Thomas Gelf 2014-03-04 12:31:20 +00:00
parent 22e5ca34bc
commit f5d796255c
1 changed files with 8 additions and 0 deletions

View File

@ -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
*