File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,13 +101,13 @@ public function create(array $data)
101
101
if (!array_key_exists ('id ' , $ data ) && $ this ->fields [0 ] == 'id ' ) {
102
102
[$ data ['id ' ]] = $ this ->mapper ->client ->call ("box.sequence. $ this ->name :next " );
103
103
}
104
- [$ tuple ] = $ this ->mapper ->client ->getSpace ($ this ->name )->insert ($ this ->getTuple ($ data ));
104
+ [$ tuple ] = $ this ->mapper ->client ->getSpaceById ($ this ->id )->insert ($ this ->getTuple ($ data ));
105
105
return $ this ->getInstance ($ tuple );
106
106
}
107
107
108
108
public function delete ($ instance )
109
109
{
110
- $ this ->mapper ->client ->getSpace ($ this ->name )->delete ($ this ->getKey ($ instance ));
110
+ $ this ->mapper ->client ->getSpaceById ($ this ->id )->delete ($ this ->getKey ($ instance ));
111
111
}
112
112
113
113
public function drop ()
@@ -386,7 +386,7 @@ public function update($instance, Operations|array $operations)
386
386
}
387
387
}
388
388
}
389
- [$ tuple ] = $ this ->mapper ->client ->getSpace ($ this ->name )->update (
389
+ [$ tuple ] = $ this ->mapper ->client ->getSpaceById ($ this ->id )->update (
390
390
$ this ->getKey ($ instance ),
391
391
$ operations ,
392
392
);
You can’t perform that action at this time.
0 commit comments