File: src/AppBundle/Resources/config/validation.yml

Recommend this page to a friend!
  Classes of Sergii Pryz  >  PHP CSV Import to MySQL  >  src/AppBundle/Resources/config/validation.yml  >  Download  
File: src/AppBundle/Resources/config/validation.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP CSV Import to MySQL
Import user data from CSV files into MySQL
Author: By
Last change:
Date: 2 years ago
Size: 701 bytes
 

Contents

Class file image Download
AppBundle\Entity\ImportUser:
  properties:
    firstName:
      - NotBlank: ~
      - Length:
          min: 2
          max: 255
    infix:
      - Length:
          max: 45
    lastName:
      - Length:
          max: 255
    birthDate:
      - Date: ~
    gender:
      - Choice:
          choices:  [m, f]
          message:  Choose a valid gender.
    zipCode:
      - Length:
          max: 32
    houseNumber:
      - Length:
          max: 255

AppBundle\Model\Csv\Data\Path:
  properties:
    path:
      - NotBlank: ~
      - File:
          mimeTypes: [text/csv, text/plain, application/vnd.ms-excel, application/vnd.oasis.opendocument.text, application/vnd.oasis.opendocument.spreadsheet]
For more information send a message to info at phpclasses dot org.