Rename find to findAll

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-11-04 19:43:40 +01:00
parent d66068cdcd
commit 9b366857ab
7 changed files with 11 additions and 15 deletions

View File

@@ -55,13 +55,9 @@ class AssignmentMapper extends QBMapper implements IPermissionMapper {
}
/**
* FIXME: rename this since it returns multiple entities otherwise the naming is confusing with Entity::find
*
* @param $cardId
* @return Assignment[]
*/
public function find($cardId): array {
public function findAll(int $cardId): array {
$qb = $this->db->getQueryBuilder();
$qb->select('*')
->from('deck_assigned_users')