Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
7e2c6c35
Commit
7e2c6c35
authored
Mar 11, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5893 add household composition to household section
parent
cb3312a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
0 deletions
+62
-0
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+12
-0
Adherent.php
src/Entity/Adherent.php
+17
-0
Version20240311163934.php
src/Migrations/Version20240311163934.php
+33
-0
No files found.
src/Admin/AdherentAdmin.php
View file @
7e2c6c35
...
@@ -185,6 +185,18 @@ class AdherentAdmin extends AbstractAdmin
...
@@ -185,6 +185,18 @@ class AdherentAdmin extends AbstractAdmin
$formMapper
$formMapper
->
tab
(
'General'
)
->
tab
(
'General'
)
->
with
(
'Foyer'
,
[
'class'
=>
'col-md-7'
])
->
with
(
'Foyer'
,
[
'class'
=>
'col-md-7'
])
->
add
(
'householdComposition'
,
ChoiceType
::
class
,
[
'choices'
=>
[
"Personne seule"
=>
"Personne seule"
,
"Couple sans enfant à charge"
=>
"Couple sans enfant à charge"
,
"Famille mono-parentale"
=>
"Famille mono-parentale"
,
"Couple avec enfant(s) à charge"
=>
"Couple avec enfant(s) à charge"
,
"Autre"
=>
"Autre"
],
'label'
=>
"Composition du foyer (pour information)"
,
'required'
=>
true
,
'placeholder'
=>
"Choix de la composition du foyer"
,
])
->
add
(
'dependentChildren'
,
CollectionType
::
class
,
[
->
add
(
'dependentChildren'
,
CollectionType
::
class
,
[
'entry_type'
=>
DependentChildFormType
::
class
,
'entry_type'
=>
DependentChildFormType
::
class
,
'entry_options'
=>
[
'entry_options'
=>
[
...
...
src/Entity/Adherent.php
View file @
7e2c6c35
...
@@ -119,6 +119,11 @@ class Adherent extends AccountableObject implements AccountableInterface
...
@@ -119,6 +119,11 @@ class Adherent extends AccountableObject implements AccountableInterface
*/
*/
private
$dependentChildren
;
private
$dependentChildren
;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private
$householdComposition
;
public
function
__construct
()
public
function
__construct
()
{
{
...
@@ -307,6 +312,18 @@ class Adherent extends AccountableObject implements AccountableInterface
...
@@ -307,6 +312,18 @@ class Adherent extends AccountableObject implements AccountableInterface
return
$this
;
return
$this
;
}
}
public
function
getHouseholdComposition
()
:
?
string
{
return
$this
->
householdComposition
;
}
public
function
setHouseholdComposition
(
?
string
$householdComposition
)
:
self
{
$this
->
householdComposition
=
$householdComposition
;
return
$this
;
}
public
function
getJourPrelevement
()
:
?
int
public
function
getJourPrelevement
()
:
?
int
{
{
...
...
src/Migrations/Version20240311163934.php
0 → 100644
View file @
7e2c6c35
<?php
declare
(
strict_types
=
1
);
namespace
DoctrineMigrations
;
use
Doctrine\DBAL\Schema\Schema
;
use
Doctrine\Migrations\AbstractMigration
;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final
class
Version20240311163934
extends
AbstractMigration
{
public
function
getDescription
()
:
string
{
return
''
;
}
public
function
up
(
Schema
$schema
)
:
void
{
// this up() migration is auto-generated, please modify it to your needs
$this
->
addSql
(
'ALTER TABLE adherent ADD household_composition VARCHAR(255) DEFAULT NULL'
);
$this
->
addSql
(
'ALTER TABLE prestataire CHANGE iban iban LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:personal_data)\''
);
}
public
function
down
(
Schema
$schema
)
:
void
{
// this down() migration is auto-generated, please modify it to your needs
$this
->
addSql
(
'ALTER TABLE adherent DROP household_composition'
);
$this
->
addSql
(
'ALTER TABLE prestataire CHANGE iban iban LONGTEXT CHARACTER SET utf8 DEFAULT NULL COLLATE `utf8_general_ci` COMMENT \'(DC2Type:personal_data)\''
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment