File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public function templateData(Arguments $arguments): array
92
92
$ className = $ data ['namespace ' ] . '\\' . $ name ;
93
93
if ($ type === 'table ' ) {
94
94
$ className = "{$ data ['namespace ' ]}\Model \\Table \\{$ name }{$ suffix }" ;
95
- $ imports [] = 'Cake\ORM\SelectQuery ' ;
95
+ $ imports [] = 'Cake\ORM\Query\ SelectQuery ' ;
96
96
} elseif ($ type === 'entity ' ) {
97
97
$ className = "{$ data ['namespace ' ]}\Model \\Entity \\{$ name }" ;
98
98
$ imports [] = $ className ;
Original file line number Diff line number Diff line change 2
2
* Apply user access controls to a query for index actions
3
3
*
4
4
* @param \Authorization\IdentityInterface $user The user.
5
- * @param \Cake\ORM\SelectQuery $query The query to apply authorization conditions to.
5
+ * @param \Cake\ORM\Query\ SelectQuery $query The query to apply authorization conditions to.
6
6
* @return bool
7
7
*/
8
8
public function scopeIndex(IdentityInterface $user, SelectQuery $query): SelectQuery
Original file line number Diff line number Diff line change 4
4
namespace TestApp \Policy ;
5
5
6
6
use Authorization \IdentityInterface ;
7
- use Cake \ORM \SelectQuery ;
7
+ use Cake \ORM \Query \ SelectQuery ;
8
8
9
9
/**
10
10
* Bookmarks policy
@@ -15,7 +15,7 @@ class BookmarksTablePolicy
15
15
* Apply user access controls to a query for index actions
16
16
*
17
17
* @param \Authorization\IdentityInterface $user The user.
18
- * @param \Cake\ORM\SelectQuery $query The query to apply authorization conditions to.
18
+ * @param \Cake\ORM\Query\ SelectQuery $query The query to apply authorization conditions to.
19
19
* @return bool
20
20
*/
21
21
public function scopeIndex (IdentityInterface $ user , SelectQuery $ query ): SelectQuery
Original file line number Diff line number Diff line change 4
4
namespace TestPlugin \Policy ;
5
5
6
6
use Authorization \IdentityInterface ;
7
- use Cake \ORM \SelectQuery ;
7
+ use Cake \ORM \Query \ SelectQuery ;
8
8
9
9
/**
10
10
* Users policy
@@ -15,7 +15,7 @@ class UsersTablePolicy
15
15
* Apply user access controls to a query for index actions
16
16
*
17
17
* @param \Authorization\IdentityInterface $user The user.
18
- * @param \Cake\ORM\SelectQuery $query The query to apply authorization conditions to.
18
+ * @param \Cake\ORM\Query\ SelectQuery $query The query to apply authorization conditions to.
19
19
* @return bool
20
20
*/
21
21
public function scopeIndex (IdentityInterface $ user , SelectQuery $ query ): SelectQuery
You can’t perform that action at this time.
0 commit comments