Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

fActiveRecord::validate()

posted by connor 8 years ago

Would this function possibly make a query to the database? Does this function detect the error where the current record to be stored has a duplicate value in a UNIQUE_KEY field? Thanks. I admire your work.

Yes, fActiveRecord::validate() runs multiple database queries to try and ensure that an fSQLException is not possible when calling fActiveRecord::store(). It will detect duplicate values in unique constraints, along with most other issues where data is not valid according to the database schema.

posted by wbond 8 years ago

From the author himself! Much appreciated.

posted by connor 8 years ago