1- UPGRADE TO 3.6
2- ======================= 
1+ # UPGRADE TO 3.7  
32
4- Import data to array
5- -------------- 
3+ ### Preset entity id before updating - [ go to the documentation] ( README.md#updating-entities )   
64
7- *  By default, allowed file extensions are set to ` 'csv', 'xls', 'xlsx', 'ods' ` .
8- However, if you want to change it, you can override this method in your import configuration.
5+ # UPGRADE TO 3.6  
96
10- ``` php 
11- public function getAllowedFileExtensions(): array
12- {
13-     return ['csv', 'xls', 'xlsx', 'ods'];
14- }
15- ``` 
7+ ### Import data to array - [ go to the documentation] ( README.md#importing-data-to-array-field )   
168
17- UPGRADE TO 3.5
18- ======================= 
9+ # UPGRADE TO 3.5  
1910
20- Import data to array
21- -------------- 
22- *  If your entity has an array field, and you want to import data from CSV file to it, it is now possible.
11+ ## Import data to array  
12+ -  If your entity has an array field, and you want to import data from CSV file to it, it is now possible.
2313
2414``` php 
2515use JG\BatchEntityImportBundle\Form\Type\ArrayTextType;
@@ -39,32 +29,25 @@ public function getFieldsDefinitions(): array
3929``` 
4030
4131
42- UPGRADE TO 3.1
43- ======================= 
32+ # UPGRADE TO 3.1  
4433
45- CSV File
46- -------------- 
47- *  Now CSV file can contain spaces and dashes as a header name, for example "my column name" or "my-column-name".
34+ ## CSV File  
35+ -  Now CSV file can contain spaces and dashes as a header name, for example "my column name" or "my-column-name".
4836
49- Import Configuration class
50- -------------- 
51- *  When header name contains spaces we should use underscores instead of spaces when defining fields names in fields definitions and in constraints.
37+ ## Import Configuration class  
38+ -  When header name contains spaces we should use underscores instead of spaces when defining fields names in fields definitions and in constraints.
5239
5340
54- UPGRADE TO 3.0
55- ======================= 
41+ # UPGRADE TO 3.0  
5642
57- Controller
58- -------------- 
43+ ## Controller  
5944*  Passing configuration class by ` getSubscribedServices() `  was removed. Now it is only possible by autoconfiguration.
6045
6146
62- UPGRADE TO 2.5
63- ======================= 
47+ # UPGRADE TO 2.5  
6448
65- Import Configuration class
66- -------------- 
67- *  Added new validator to check matrix record data uniqueness in database.
49+ ## Import Configuration class  
50+ -  Added new validator to check matrix record data uniqueness in database.
6851``` php 
6952use JG\BatchEntityImportBundle\Validator\Constraints\DatabaseEntityUnique;
7053
@@ -76,12 +59,10 @@ public function getMatrixConstraints(): array
7659}
7760``` 
7861
79- UPGRADE TO 2.4
80- ======================= 
62+ # UPGRADE TO 2.4  
8163
82- Import Configuration class
83- -------------- 
84- *  Added new validator to check matrix record data uniqueness.
64+ ## Import Configuration class  
65+ -  Added new validator to check matrix record data uniqueness.
8566``` php 
8667use JG\BatchEntityImportBundle\Validator\Constraints\MatrixRecordUnique;
8768
@@ -93,33 +74,27 @@ public function getMatrixConstraints(): array
9374}
9475``` 
9576
96- Controller
97- -------------- 
98- *  List of options passed to form in ` createMatrixForm() `  method, should contain new ` constraints `  element:
77+ ## Controller  
78+ -  List of options passed to form in ` createMatrixForm() `  method, should contain new ` constraints `  element:
9979` 'constraints' => $importConfiguration->getMatrixConstraints() ` 
10080
101- UPGRADE TO 2.3
102- ======================= 
81+ # UPGRADE TO 2.3  
10382
104- Controller
105- -------------- 
106- *  Passing configuration class by ` getSubscribedServices() `  method is not needed anymore and will be removed in the future.
107- *  To make sure that configuration class will be injected automatically:
108-   *  Interface ` JG\BatchEntityImportBundle\Controller\ImportConfigurationAutoInjectInterface `  should be implemented.
109-   *  Trait ` JG\BatchEntityImportBundle\Controller\ImportConfigurationAutoInjectTrait `  should be used to add needed methods.
83+ ## Controller  
84+ -  Passing configuration class by ` getSubscribedServices() `  method is not needed anymore and will be removed in the future.
85+ -  To make sure that configuration class will be injected automatically:
86+   -  Interface ` JG\BatchEntityImportBundle\Controller\ImportConfigurationAutoInjectInterface `  should be implemented.
87+   -  Trait ` JG\BatchEntityImportBundle\Controller\ImportConfigurationAutoInjectTrait `  should be used to add needed methods.
11088
11189
112- UPGRADE TO 2.2
113- ======================= 
90+ # UPGRADE TO 2.2  
11491
115- Import Configuration class
116- -------------- 
117- *  Now configuration class should be always registered as a service:
92+ ## Import Configuration class  
93+ -  Now configuration class should be always registered as a service:
11894``` yaml 
11995services :
12096    App\Model\ImportConfiguration\UserImportConfiguration : ~ 
12197` ` ` 
12298
123- Controller 
124- -------------- 
125- * Entity Manager is no longer passed as an argument of actions. 
99+ ## Controller 
100+ - Entity Manager is no longer passed as an argument of actions. 
0 commit comments