Commit b55a24b0 authored by Georgios Tsakalos's avatar Georgios Tsakalos
Browse files

improve labservice

parent f5a4a7c8
......@@ -63,11 +63,11 @@ class LabService implements LabServiceInterface
return $lab;
public function getLabsBySchoolId($id)
$school = $this->schoolService->getSchool($id);
$labs = $school->ownLab;
$labs = R::findAll('lab', 'school_id = ?', [$id]);
return $labs;
return array_map([$this, 'export'], $labs);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment