mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
create view for current address and apply on Person/Household normalizer
This commit is contained in:
@@ -195,7 +195,13 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
|
||||
->prependExtensionConfig(
|
||||
'doctrine',
|
||||
[
|
||||
'dbal' => [
|
||||
'dbal' => [
|
||||
// ignore views:
|
||||
'connections' => [
|
||||
'default' => [
|
||||
'schema_filter' => '~^(?!view_)~',
|
||||
],
|
||||
],
|
||||
// This is mandatory since we are using postgis as database.
|
||||
'mapping_types' => [
|
||||
'geometry' => 'string',
|
||||
|
@@ -116,7 +116,7 @@ class Address
|
||||
* @ORM\Column(type="date")
|
||||
* @groups({"write"})
|
||||
*/
|
||||
private $validFrom;
|
||||
private \DateTime $validFrom;
|
||||
|
||||
/**
|
||||
* Indicates when the address ends. Used to build an history
|
||||
@@ -127,7 +127,7 @@ class Address
|
||||
* @ORM\Column(type="date", nullable=true)
|
||||
* @groups({"write"})
|
||||
*/
|
||||
private $validTo;
|
||||
private ?\DateTime $validTo = null;
|
||||
|
||||
/**
|
||||
* True if the address is a "no address", aka homeless person, ...
|
||||
|
Reference in New Issue
Block a user