예제 #1
0
 /**
  * @return \Mapbender\SearchBundle\Entity\Query
  */
 public function getMockupQuery()
 {
     $queryConditionArgs = array("fieldName" => "name", "operator" => "LIKE", "value" => "Matthias", "sql" => "");
     $queryCondition = new QueryCondition($queryConditionArgs);
     $queryConditions = array($queryCondition);
     $styleMap = new StyleMap();
     $queryArgs = array("name" => "Test", "conditions" => $queryConditions, "styleMap" => $styleMap);
     return $this->queryManager->create($queryArgs);
 }
예제 #2
0
 /**
  * @return Query
  */
 protected function getQuery()
 {
     $mockUpStyleMap = $this->getMockUpStyleMap();
     $this->queryArgs["styleMap"] = $this->styleMapManager->create($mockUpStyleMap)->getId();
     $query = $this->queryManager->create($this->queryArgs);
     return $query;
 }