; | ; | ||||
} | } | ||||
public function find() | |||||
public function find() :array | |||||
{ | { | ||||
return $this->query->getQuery()->getResult(); | return $this->query->getQuery()->getResult(); | ||||
} | } | ||||
return $data; | return $data; | ||||
} | } | ||||
public function orderBy($field, $sort){ | |||||
if(substr($field,0,1)=== '.'){ | |||||
return $this->addOrderBy($field, $sort) ; | |||||
}else{ | |||||
return $this->addOrderBy('.'.$field, $sort) ; | |||||
} | |||||
} | |||||
} | } | ||||