Bonjour et merci ,
Oui, /usr/bin
n'est pas nécessaire ;
Voici le résultat de import materials et technicians :
$ php7.4-cli -f utilities/Scripts/ImportsV1/run import materials
Hello!
Let's import entity « materials » to Robert2.
Importing 35 items...
Entity input fields:
- 'id'
- 'label'
- 'ref'
- 'panne'
- 'externe'
- 'categorie'
- 'sousCateg'
- 'Qtotale'
- 'tarifLoc'
- 'valRemp'
- 'dateAchat'
- 'ownerExt'
- 'remarque'
- 'parkId'
- 'categoryId'
An error occurred at index 0 of data set. Error message:
« Validation failed. See error[details] for more informations. »
[
"Duplicate entry: index reference_UNIQUE' (SQL: insert into `Rob2-materials` (`name`, `reference`, `out_of_order_quantity`, `stock_quantity`, `rental_price`, `replacement_price`, `note`, `park_id`, `category_id`, `updated_at`, `created_at`) values (Camescope Canon XA35 HD sur carte SD avec micro additionnel, Camescope CANON XA35, 1, 1, 50, 2500, ?, 1, 1, 2020-09-18 16:14:05, 2020-09-18 16 must be unique",
"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'Camescope CANON XA35' for key 'reference_UNIQUE' (SQL: insert into `Rob2-materials` (`name`, `reference`, `out_of_order_quantity`, `stock_quantity`, `rental_price`, `replacement_price`, `note`, `park_id`, `category_id`, `updated_at`, `created_at`) values (Camescope Canon XA35 HD sur carte SD avec micro additionnel, Camescope CANON XA35, 1, 1, 50, 2500, ?, 1, 1, 2020-09-18 16:14:05, 2020-09-18 16:14:05))"
]
[END] 0 items were imported.
$ php7.4-cli -f utilities/Scripts/ImportsV1/run import technicians
Hello!
Let's import entity « technicians » to Robert2.
Importing 32 items...
Entity input fields:
- 'id'
- 'idUser'
- 'surnom'
- 'nom'
- 'prenom'
- 'email'
- 'tel'
- 'GUSO'
- 'CS'
- 'birthDay'
- 'birthPlace'
- 'habilitations'
- 'categorie'
- 'SECU'
- 'SIRET'
- 'assedic'
- 'intermittent'
- 'adresse'
- 'cp'
- 'ville'
- 'diplomes_folder'
- 'notes'
- 'tags'
An error occurred at index 24 of data set. Error message:
« Validation failed. See error[details] for more informations. »
{
"last_name": [
"last_name must contain only letters (a-z) and \"\"-_. \u00c7\u00e7\u00e0\u00c0\u00e2\u00c2\u00e4\u00c4\u00e5\u00c5\u00e8\u00c8\u00e9\u00c9\u00ea\u00ca\u00eb\u00cb\u00ed\u00cd\u00ec\u00cc\u00ee\u00ce\u00ef\u00cf\u00f2\u00d2\u00f3\u00d3\u00f4\u00d4\u00f6\u00d6\u00f0\u00d0\u00f5\u00d5\u00f8\u00d8\u00fa\u00da\u00f9\u00d9\u00fb\u00db\u00fc\u00dc\u00fd\u00dd\u00ff\u0178\u0177\u0176\u00f8\u00d8\u00e6\u00c6\u0153\u0152\u00f1\u00d1\u00df\u00de\"\""
]
}
[END] 24 items were imported.
Warning: make sure to restart your import with following option: --start=24