Bladeren bron

fixed lu business

develop
Robin Thoni 8 jaren geleden
bovenliggende
commit
417f8808ad
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3
    3
      src/Utils/Business/LuBusiness.php

+ 3
- 3
src/Utils/Business/LuBusiness.php Bestand weergeven

@@ -2,8 +2,8 @@
2 2
 
3 3
 namespace Luticate\Utils\Business;
4 4
 
5
+use Luticate\Utils\DataAccess\LuDataAccess;
5 6
 use Luticate\Utils\Dbo\LuDbo;
6
-use Luticate\Utils\LuDataAccess;
7 7
 
8 8
 abstract class LuBusiness {
9 9
 
@@ -40,7 +40,7 @@ abstract class LuBusiness {
40 40
      */
41 41
     public static function getById($id)
42 42
     {
43
-        $data = static::getDataAccess()->getById($id);
43
+        $data = static::getDataAccess()->getSingleById($id);
44 44
         if (is_null($data))
45 45
             self::notFound(static::getResourceName() . " not found");
46 46
         return $data;
@@ -52,7 +52,7 @@ abstract class LuBusiness {
52 52
      */
53 53
     public static function deleteById($id)
54 54
     {
55
-        $res = static::getDataAccess()->deleteById($id);
55
+        $res = static::getDataAccess()->deleteSingleById($id);
56 56
         if (!$res)
57 57
             self::notFound(static::getResourceName() . " not found");
58 58
         return true;

Laden…
Annuleren
Opslaan