Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Départements-Notaires v2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
32
Issues
32
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Départements-Notaires
Départements-Notaires v2
Commits
2fce249f
Commit
2fce249f
authored
Jul 23, 2020
by
Cédric Girardot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feat : Ajoute date de décès dans l'import des individus
Change-Id: I64a279f1d8a7f5a4bd4cd7853c6f8769dab27f4d
parent
3b4cc586
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
appli_sf/src/Command/ImportCommand.php
appli_sf/src/Command/ImportCommand.php
+4
-1
No files found.
appli_sf/src/Command/ImportCommand.php
View file @
2fce249f
...
...
@@ -129,6 +129,7 @@ class ImportCommand extends Command
$array_value
[
'mail_mdr'
]
=
trim
(
$contentFileLineDetail
[
11
]);
$array_value
[
'libelle'
]
=
trim
(
$contentFileLineDetail
[
12
]);
$array_value
[
'code'
]
=
trim
(
$contentFileLineDetail
[
13
]);
$array_value
[
'date_deces'
]
=
trim
(
$contentFileLineDetail
[
14
]);
try
{
$this
->
addIndividu
(
$array_value
);
...
...
@@ -182,6 +183,7 @@ class ImportCommand extends Command
$individu
=
new
Person
();
$cr_date
=
new
\
DateTime
(
$this
->
convertDate
(
$array_value
[
'date_naissance'
]));
$deathDate
=
$array_value
[
'date_deces'
]
?
new
\
DateTime
(
$this
->
convertDate
(
$array_value
[
'date_deces'
]))
:
null
;
$individu
->
setPersonNum
(
$array_value
[
'num_ind'
])
...
...
@@ -197,7 +199,8 @@ class ImportCommand extends Command
->
setDepartmentalHouseMail
(
$array_value
[
'mail_mdr'
])
->
setPhone
(
$array_value
[
'telephone'
])
->
setLabel
(
$array_value
[
'libelle'
])
->
setHelpCode
(
$array_value
[
'code'
]);
->
setHelpCode
(
$array_value
[
'code'
])
->
setDeathDate
(
$deathDate
);
$entityManager
->
persist
(
$individu
);
$entityManager
->
flush
();
...
...
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