Skip to content

Commit

Permalink
If you define rules on default Atk4\Data\Model class, then it do not …
Browse files Browse the repository at this point in the history
…have $table set and will fail (#117)
  • Loading branch information
DarkSide666 authored Apr 16, 2024
1 parent c3f9deb commit b844c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Control/GenericDropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getModel()
return null;
}

$model = new $class($this->form->entity->getModel()->getPersistence());
$model = new $class($this->form->entity->getModel()->getPersistence(), ['table' => '']);
if (!$model instanceof Model) {
throw new Exception('Class must be instance of ' . Model::class);
}
Expand Down

0 comments on commit b844c57

Please sign in to comment.