Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
gredu_labs
Commits
b55a24b0
Commit
b55a24b0
authored
Feb 17, 2016
by
Georgios Tsakalos
Browse files
improve labservice
parent
f5a4a7c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/schools/src/Service/LabService.php
View file @
b55a24b0
...
...
@@ -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
)
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment