chg: [command:keycloakSync] Make sure User model is loaded

cli-modification-summary
Sami Mokaddem 2022-09-21 10:09:12 +02:00
parent f2db6b3b5e
commit 80277e4bdf
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ class KeycloakSyncCommand extends Command
public function execute(Arguments $args, ConsoleIo $io) public function execute(Arguments $args, ConsoleIo $io)
{ {
if (!empty(Configure::read('keycloak'))) { if (!empty(Configure::read('keycloak'))) {
$this->loadModel('Users');
$results = $this->fetchTable()->syncWithKeycloak(); $results = $this->fetchTable()->syncWithKeycloak();
$tableData = [ $tableData = [
['Changes to', 'Count'] ['Changes to', 'Count']