Example #1
0
 /**
  * Filter target devices by query
  *
  * The query must be over _Installation table.
  *
  * @param Query $query A query over _Installation
  * @return self
  * @see self::setOption()
  */
 public function setWhere(Query $query)
 {
     if ($query->getClassName() != "_Installation") {
         throw new \RuntimeException("Query must be over " . "_Installation table.");
     }
     return $this->setOption("where", $query);
 }