Example #1
0
 public function __construct($dto = [])
 {
     parent::__construct($dto);
 }
Example #2
0
 public function __construct($dto = [])
 {
     parent::__construct($dto);
     $this->historyRepository = StationAqiHistoryRepository::getInstance();
 }
 public function delete(Entity $entity)
 {
     $query = $this->queryBuilder->delete($this->getTableName(), $entity->getId());
     try {
         $result = $query->execute();
     } catch (\PDOException $ex) {
         throw new QueryException($ex, $query);
     }
     return $result;
 }
Example #4
0
 public function __construct($dto = [])
 {
     parent::__construct($dto);
     $this->componentRepository = ComponentRepository::getInstance();
     $this->stationRepository = StationRepository::getInstance();
 }