public function applyOrdering(Entity $entity) { $entity->underlyingQuery()->orderBy($this->collumn, $this->direction); }
public function applyFilter(Entity $entity) { $entity->underlyingQuery($this->applyFilterToQuery($entity->underlyingQuery())); }