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
e4dfcb8d
Commit
e4dfcb8d
authored
Jun 03, 2026
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export data script: small fixes
parent
0667e5b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ExportAndUploadDataCommand.php
src/Command/ExportAndUploadDataCommand.php
+11
-0
No files found.
src/Command/ExportAndUploadDataCommand.php
View file @
e4dfcb8d
...
...
@@ -11,6 +11,7 @@ use Symfony\Component\Console\Output\OutputInterface;
use
App\Entity\Adherent
;
use
App\Entity\Prestataire
;
use
App\Entity\Flux
;
use
App\Entity\Comptoir
;
class
ExportAndUploadDataCommand
extends
Command
{
...
...
@@ -50,6 +51,7 @@ class ExportAndUploadDataCommand extends Command
$data
=
[
"adherents"
=>
[],
"prestataires"
=>
[],
"comptoirs"
=>
[],
"flux"
=>
[],
];
...
...
@@ -88,6 +90,7 @@ class ExportAndUploadDataCommand extends Command
$prestataires
=
$this
->
em
->
getRepository
(
Prestataire
::
class
)
->
findAllForSsaExport
();
foreach
(
$prestataires
as
$p
)
{
$presta
=
[
"id"
=>
$p
->
getId
(),
"raison"
=>
$p
->
getRaison
(),
"addresses"
=>
[],
"rubrics"
=>
[],
...
...
@@ -111,6 +114,14 @@ class ExportAndUploadDataCommand extends Command
$data
[
"prestataires"
][]
=
$presta
;
}
$comptoirs
=
$this
->
em
->
getRepository
(
Comptoir
::
class
)
->
findAll
();
foreach
(
$comptoirs
as
$c
)
{
$data
[
"comptoirs"
][]
=
[
"id"
=>
$c
->
getId
(),
"name"
=>
$c
->
getName
(),
];
}
$flux
=
$this
->
em
->
getRepository
(
Flux
::
class
)
->
findAll
();
foreach
(
$flux
as
$f
)
{
...
...
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