Skip to content

Commit

Permalink
Fix model names (CFM-74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Mar 6, 2024
1 parent 518ec9e commit 2f20bcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/src/Model/Table/GroupsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public function initialize(array $config): void {
$this->hasMany('ProvisioningHistoryRecords')
->setDependent(true)
->setCascadeCallbacks(true);
$this->hasMany('ProvisioningTargets')
->setForeignKey('provisioning_group_id');

$this->setDisplayField('name');

Expand Down
2 changes: 1 addition & 1 deletion app/src/Model/Table/ProvisioningTargetsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function initialize(array $config): void {
],
'provisioningGroups' => [
'type' => 'select',
'model' => 'ProvisioningGroups'
'model' => 'Groups'
],
'statuses' => [
'type' => 'enum',
Expand Down

0 comments on commit 2f20bcd

Please sign in to comment.