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
6
Merge Requests
6
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
190bbb42
Commit
190bbb42
authored
Mar 07, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change name custody, fix wrong column name, clean useless attribute
parent
d5bedf87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
13 deletions
+42
-13
DependentChild.php
src/Entity/DependentChild.php
+6
-6
DependentChildFormType.php
src/Form/Type/DependentChildFormType.php
+3
-7
Version20240307162630.php
src/Migrations/Version20240307162630.php
+33
-0
No files found.
src/Entity/DependentChild.php
View file @
190bbb42
...
@@ -34,10 +34,10 @@ class DependentChild
...
@@ -34,10 +34,10 @@ class DependentChild
/**
/**
* @var float
* @var float
*
*
* @ORM\Column(name="
conventionnement
", type="decimal", scale=2, nullable=true)
* @ORM\Column(name="
sharedcustodypercentage
", type="decimal", scale=2, nullable=true)
* @Assert\Type("numeric")
* @Assert\Type("numeric")
*/
*/
protected
$
custody
;
protected
$
sharedCustodyPercentage
;
public
function
getId
()
:
?
int
public
function
getId
()
:
?
int
...
@@ -69,14 +69,14 @@ class DependentChild
...
@@ -69,14 +69,14 @@ class DependentChild
return
$this
;
return
$this
;
}
}
public
function
get
Custody
()
public
function
get
SharedCustodyPercentage
()
{
{
return
$this
->
custody
;
return
$this
->
sharedCustodyPercentage
;
}
}
public
function
set
Custody
(
$custody
)
public
function
set
SharedCustodyPercentage
(
$sharedCustodyPercentage
)
{
{
$this
->
custody
=
$custody
;
$this
->
sharedCustodyPercentage
=
$sharedCustodyPercentage
;
return
$this
;
return
$this
;
}
}
...
...
src/Form/Type/DependentChildFormType.php
View file @
190bbb42
...
@@ -21,10 +21,9 @@ class DependentChildFormType extends AbstractType
...
@@ -21,10 +21,9 @@ class DependentChildFormType extends AbstractType
],
],
'label'
=>
"A-t-il plus de 14 ans ?"
,
'label'
=>
"A-t-il plus de 14 ans ?"
,
'required'
=>
true
,
'required'
=>
true
,
'expanded'
=>
true
,
'expanded'
=>
true
'attr'
=>
[
'class'
=>
'dependent-child-older-than-fourteen'
]
))
))
->
add
(
'
custody
'
,
ChoiceType
::
class
,
[
->
add
(
'
sharedCustodyPercentage
'
,
ChoiceType
::
class
,
[
'label'
=>
"Est-il en garde partagée ?"
,
'label'
=>
"Est-il en garde partagée ?"
,
'required'
=>
true
,
'required'
=>
true
,
'choices'
=>
[
'choices'
=>
[
...
@@ -32,10 +31,7 @@ class DependentChildFormType extends AbstractType
...
@@ -32,10 +31,7 @@ class DependentChildFormType extends AbstractType
'oui : je le garde 25 % du temps'
=>
0.25
,
'oui : je le garde 25 % du temps'
=>
0.25
,
'oui : je le garde 50 % du temps'
=>
0.50
,
'oui : je le garde 50 % du temps'
=>
0.50
,
'oui : je le garde 75 % du temps'
=>
0.75
,
'oui : je le garde 75 % du temps'
=>
0.75
,
],
]
'attr'
=>
[
'class'
=>
'dependent-child-custody-percentage-of-time'
,
],
])
])
;
;
}
}
...
...
src/Migrations/Version20240307162630.php
0 → 100644
View file @
190bbb42
<?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
Version20240307162630
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 dependent_child CHANGE conventionnement sharedcustodypercentage NUMERIC(10, 2) 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 dependent_child CHANGE sharedcustodypercentage conventionnement NUMERIC(10, 2) DEFAULT NULL'
);
$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