Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
werrolf committed Nov 11, 2022
2 parents 87cde57 + 9e5dac3 commit 064fe74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ RepositoryRegistry and inject the appropriate factory plus DataStore / FeatureTy
DataStoreService and FeatureTypeService classes are and will remain incompatible with
Symfony 4.

## 0.1.30
* Fix errors saving boolean values into numeric column (convert to 0 or 1)

## 0.1.29
* Re-add support for explicitly preconfiguring source table srid on FeatureType; only used if detection fails (e.g. views using geometry expressions)

Expand Down
2 changes: 2 additions & 0 deletions Component/Meta/TableMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public function prepareUpdateData(array $data)
if ($column->isNumeric() && !\is_numeric(trim($value))) {
$data[$columnName] = $column->getSafeDefault();
}
} elseif (\is_bool($value) && $this->getColumn($columnName)->isNumeric()) {
$data[$columnName] = $value ? 1 : 0;
}
}
return $data;
Expand Down

0 comments on commit 064fe74

Please sign in to comment.