Development

#2467: 10-Forms.txt.patch

You must first sign up to be able to contribute.

Ticket #2467: 10-Forms.txt.patch

File 10-Forms.txt.patch, 0.7 kB (added by Carl.Vondrick, 11 months ago)

Patch for symfony book.

  • 10-Forms.txt

    old new  
    845845 
    846846In this example, the validator will look in the database for a record of class `User` where the `login` column has the same value as the field to validate. 
    847847 
     848>**CAUTION** 
     849>sfPropelUniqueValidator is susceptible to race conditions.  Although unlikely, in multiuser environments, the result may change the instant it returns.  You should still be ready to handle a duplicate INSERT error. 
     850 
    848851#### File Validator 
    849852 
    850853`sfFileValidator` applies format (an array of mime-types) and size constraints to file upload fields.