Browse Source

AbstractStore : ajout getOnlineAndOffline()

develop
Guillaume Bourgeois 1 year ago
parent
commit
d05cbe6ece
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      Repository/AbstractStore.php

+ 7
- 0
Repository/AbstractStore.php View File

@@ -115,6 +115,13 @@ abstract class AbstractStore implements StoreInterface
return $query->find();
}

public function getOnlineAndOffline($query = null)
{
$query = $this->createDefaultQuery($query);
$query->filterIsOnlineAndOffline();
return $query->find();
}

public function getParent(bool $isOnline = true, $query = null)
{
$query = $this->createDefaultQuery($query);

Loading…
Cancel
Save