Skip to content

Commit e5e0e76

Browse files
authored
Merge pull request #2974 from Laravel-Backpack/fix-2790-and-2836
[4.1][Bug fix] enum field could not be added using fluent syntax
2 parents 987e7fe + a996406 commit e5e0e76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/Library/CrudPanel/Traits/AutoSet.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ trait AutoSet
1313
public function setFromDb()
1414
{
1515
if (! $this->driverIsMongoDb()) {
16-
$this->setDoctrineTypesMapping();
1716
$this->getDbColumnTypes();
1817
}
1918

@@ -53,6 +52,8 @@ public function setFromDb()
5352
*/
5453
public function getDbColumnTypes()
5554
{
55+
$this->setDoctrineTypesMapping();
56+
5657
$dbColumnTypes = [];
5758

5859
foreach ($this->getDbTableColumns() as $key => $column) {

0 commit comments

Comments
 (0)