@@ -30,7 +30,7 @@ protected function applyOne(DataQuery $query)
30
30
{
31
31
$ this ->model = $ query ->applyRelation ($ this ->relation );
32
32
$ schema = DataObjectSchema::singleton ();
33
- $ tableName = $ schema ->tableName ($ this ->model );
33
+ $ tableName = $ schema ->tableForField ($ this ->model , ' Deleted ' );
34
34
35
35
$ query = $ query ->setQueryParam ("SoftDeletable.filter " , false );
36
36
if ($ this ->getOnlyDeleted () || $ this ->name == "OnlyDeleted " ) {
@@ -44,7 +44,7 @@ protected function applyMany(DataQuery $query)
44
44
{
45
45
$ this ->model = $ query ->applyRelation ($ this ->relation );
46
46
$ schema = DataObjectSchema::singleton ();
47
- $ tableName = $ schema ->tableName ($ this ->model );
47
+ $ tableName = $ schema ->tableForField ($ this ->model , ' Deleted ' );
48
48
49
49
$ query = $ query ->setQueryParam ("SoftDeletable.filter " , false );
50
50
if ($ this ->getOnlyDeleted () || $ this ->name == "OnlyDeleted " ) {
@@ -58,7 +58,7 @@ protected function excludeOne(DataQuery $query)
58
58
{
59
59
$ this ->model = $ query ->applyRelation ($ this ->relation );
60
60
$ schema = DataObjectSchema::singleton ();
61
- $ tableName = $ schema ->tableName ($ this ->model );
61
+ $ tableName = $ schema ->tableForField ($ this ->model , ' Deleted ' );
62
62
63
63
$ query = $ query ->setQueryParam ("SoftDeletable.filter " , true );
64
64
if ($ this ->getOnlyDeleted () || $ this ->name == "OnlyDeleted " ) {
@@ -72,7 +72,7 @@ protected function excludeMany(DataQuery $query)
72
72
{
73
73
$ this ->model = $ query ->applyRelation ($ this ->relation );
74
74
$ schema = DataObjectSchema::singleton ();
75
- $ tableName = $ schema ->tableName ($ this ->model );
75
+ $ tableName = $ schema ->tableForField ($ this ->model , ' Deleted ' );
76
76
77
77
$ query = $ query ->setQueryParam ("SoftDeletable.filter " , true );
78
78
if ($ this ->getOnlyDeleted () || $ this ->name == "OnlyDeleted " ) {
0 commit comments