You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/Command/ImporterCommand.php
+6-6
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
3
3
/**
4
4
* Generic importer to feed data to cerebrate from JSON or CSV.
5
-
*
5
+
*
6
6
* - JSON configuration file must have the `format` key which can either take the value `json` or `csv`
7
7
* - If `csv` is provided, the file must contains the header.
8
8
* - If `json` is provided, a `mapping` key on how to reach each fields using the cakephp4's Hash syntax must be provided.
9
9
* - The mapping is done in the following way:
10
10
* - The key is the field name
11
11
* - The value
12
12
* - Can either be the string representing the path from which to get the value
13
-
* - Or a JSON containg the `path`, the optional `override` parameter specifying if the existing data should be overriden
13
+
* - Or a JSON containg the `path`, the optional `override` parameter specifying if the existing data should be overriden
14
14
* and an optional `massage` function able to alter the data.
15
15
* - Example
16
16
* {
@@ -22,7 +22,7 @@
22
22
* },
23
23
*
24
24
* - The optional primary key argument provides a way to make import replayable. It can typically be used when an ID or UUID is not provided in the source file but can be replaced by something else (e.g. team-name or other type of unique data).
25
-
*
25
+
*
26
26
*/
27
27
28
28
namespaceApp\Command;
@@ -165,7 +165,7 @@ private function marshalData($table, $data, $config, $primary_key=null)
0 commit comments