/**
* @return SearcherResult
*/
public function search(SearchCriteria
$criteria) { $builder =
$this->
createQuery($criteria);
$builder->
setFirstResult($criteria->offset
) ->
setMaxResults($criteria->limit
);
if ($criteria->term
) { $this->
addSearchTermCondition($criteria,
$builder);
} if ($criteria->conditions
) { $builder->
addFilter($criteria->conditions
);
} if ($criteria->sortings
) { $builder->
addOrderBy($criteria->sortings
);
} return $this->
createResult($builder);
}