Browse Source

fixed lu business

develop
Robin Thoni 8 years ago
parent
commit
417f8808ad
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/Utils/Business/LuBusiness.php

+ 3
- 3
src/Utils/Business/LuBusiness.php View File

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

Loading…
Cancel
Save