Added organisation members table & associated table column data

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

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();
}
}