Just a quick question about validating records. I have a UserRecord that has a Username, password, and email. Once of the requirements is that the Username must be unique. Should I check for uniqueness in a controller before I call the save() method, or should I use a Validate() method that checks for the uniqueness? If I used a Validate() method, where does it go? Is it ok to reference a UserGateway to call an Exists() function?

 

Just wondering where to do this sort of validation.

 

Cedric

-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

Reply via email to