chg: [command:keycloakSync] Make sure User model is loaded
parent
f2db6b3b5e
commit
80277e4bdf
|
@ -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']
|
||||||
|
|
Loading…
Reference in New Issue