29 $this->view->assign(
'id', $this->widgetConfiguration[
'for']);
37 $searchProperty = $this->widgetConfiguration[
'searchProperty'];
38 $query = $this->widgetConfiguration[
'objects']->getQuery();
39 $constraint = $query->getConstraint();
40 if ($constraint !== NULL) {
41 $query->matching($query->logicalAnd($constraint, $query->like($searchProperty,
'%' . $term .
'%', FALSE)));
43 $query->matching($query->like($searchProperty,
'%' . $term .
'%', FALSE));
45 $results = $query->execute();
47 foreach ($results as $singleResult) {
55 return json_encode($output);
static getProperty($subject, $propertyName, $forceDirectAccess=FALSE)