Loading admin/src/DataGen.php +4 −2 Changes for admin/src/DataGen.php: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ class DataGen [ 'table' => 'PLAFOND_ETAT', 'context' => ['install', 'update'], 'key' => 'CODE', 'key' => 'ID', ], [ 'table' => 'PLAFOND_PERIMETRE', Loading Loading @@ -651,13 +651,15 @@ class DataGen { $data = require $this->oseAdmin->getOseDir() . 'data/plafonds.php'; $plafonds = []; $id = 1; foreach ($data['etats'] as $code => $libelle) { $plafond = [ 'ID' => $id, 'CODE' => $code, 'LIBELLE' => $libelle, ]; $plafonds[] = $plafond; $id++; } return $plafonds; Loading data/ddl/table/PLAFOND_PERIMETRE.php +12 −0 Changes for data/ddl/table/PLAFOND_PERIMETRE.php: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -45,6 +45,18 @@ return [ 'position' => 3, 'commentaire' => NULL, ], 'ORDRE' => [ 'name' => 'ORDRE', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => 1, 'position' => 4, 'commentaire' => NULL, ], ], ]; Loading data/plafonds.php +1 −0 Changes for data/plafonds.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ return [ 'etats' => [ 'desactive' => 'Désactivé', 'indicateur' => 'Indicateur', 'informatif' => 'Informatif', 'bloquant' => 'Bloquant', ], Loading module/Plafond/src/Plafond/Entity/Db/Mapping/Plafond.Entity.Db.Plafond.dcm.xml +1 −0 Changes for module/Plafond/src/Plafond/Entity/Db/Mapping/Plafond.Entity.Db.Plafond.dcm.xml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -15,5 +15,6 @@ <join-column name="PLAFOND_PERIMETRE_ID" referenced-column-name="ID"/> </join-columns> </many-to-one> <one-to-many field="plafondApplication" target-entity="Plafond\Entity\Db\PlafondApplication" mapped-by="plafond"/> </entity> </doctrine-mapping> module/Plafond/src/Plafond/Entity/Db/Mapping/Plafond.Entity.Db.PlafondPerimetre.dcm.xml +2 −0 Changes for module/Plafond/src/Plafond/Entity/Db/Mapping/Plafond.Entity.Db.PlafondPerimetre.dcm.xml: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -6,5 +6,7 @@ <id name="id" type="integer" column="ID"/> <field name="code" type="string" column="CODE" length="20" nullable="false"/> <field name="libelle" type="string" column="LIBELLE" length="100" nullable="false"/> <field name="ordre" type="integer" column="ORDRE" nullable="false"/> <one-to-many field="plafond" target-entity="Plafond\Entity\Db\Plafond" mapped-by="plafondPerimetre"/> </entity> </doctrine-mapping> Loading
admin/src/DataGen.php +4 −2 Changes for admin/src/DataGen.php: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ class DataGen [ 'table' => 'PLAFOND_ETAT', 'context' => ['install', 'update'], 'key' => 'CODE', 'key' => 'ID', ], [ 'table' => 'PLAFOND_PERIMETRE', Loading Loading @@ -651,13 +651,15 @@ class DataGen { $data = require $this->oseAdmin->getOseDir() . 'data/plafonds.php'; $plafonds = []; $id = 1; foreach ($data['etats'] as $code => $libelle) { $plafond = [ 'ID' => $id, 'CODE' => $code, 'LIBELLE' => $libelle, ]; $plafonds[] = $plafond; $id++; } return $plafonds; Loading
data/ddl/table/PLAFOND_PERIMETRE.php +12 −0 Changes for data/ddl/table/PLAFOND_PERIMETRE.php: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -45,6 +45,18 @@ return [ 'position' => 3, 'commentaire' => NULL, ], 'ORDRE' => [ 'name' => 'ORDRE', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => 1, 'position' => 4, 'commentaire' => NULL, ], ], ]; Loading
data/plafonds.php +1 −0 Changes for data/plafonds.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ return [ 'etats' => [ 'desactive' => 'Désactivé', 'indicateur' => 'Indicateur', 'informatif' => 'Informatif', 'bloquant' => 'Bloquant', ], Loading
module/Plafond/src/Plafond/Entity/Db/Mapping/Plafond.Entity.Db.Plafond.dcm.xml +1 −0 Changes for module/Plafond/src/Plafond/Entity/Db/Mapping/Plafond.Entity.Db.Plafond.dcm.xml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -15,5 +15,6 @@ <join-column name="PLAFOND_PERIMETRE_ID" referenced-column-name="ID"/> </join-columns> </many-to-one> <one-to-many field="plafondApplication" target-entity="Plafond\Entity\Db\PlafondApplication" mapped-by="plafond"/> </entity> </doctrine-mapping>
module/Plafond/src/Plafond/Entity/Db/Mapping/Plafond.Entity.Db.PlafondPerimetre.dcm.xml +2 −0 Changes for module/Plafond/src/Plafond/Entity/Db/Mapping/Plafond.Entity.Db.PlafondPerimetre.dcm.xml: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -6,5 +6,7 @@ <id name="id" type="integer" column="ID"/> <field name="code" type="string" column="CODE" length="20" nullable="false"/> <field name="libelle" type="string" column="LIBELLE" length="100" nullable="false"/> <field name="ordre" type="integer" column="ORDRE" nullable="false"/> <one-to-many field="plafond" target-entity="Plafond\Entity\Db\Plafond" mapped-by="plafondPerimetre"/> </entity> </doctrine-mapping>