Added organisation members table & associated table column data

This commit is contained in:
bwilliams committed 2022-02-04 13:58:44 +00:00
1 parent 830a1b49a8
commit 1edd850170
5 files changed
+197 -2

No files matched your search

+5 -1
View File
@@ -25,11 +25,15 @@ class OrganisationSprunje extends Sprunje
protected $sortable = [
'name',
'description',
'member_count',
'admin_count'
];
protected $filterable = [
'name',
'description',
'member_count',
'admin_count'
];
/**
@@ -37,6 +41,6 @@ class OrganisationSprunje extends Sprunje
*/
protected function baseQuery()
{
return $this->classMapper->createInstance('organisation')->newQuery();
return $this->classMapper->createInstance('organisation')->newQuery()->joinMemberCounts();
}
}