I have a model that consists of 3 fields, ID, Language, Filename. How can i prevent to save a new record if there is an existing record with same Filename and Language. For example
1. ID: 0001 Language: EN Filename:Test.pdf
If I try to add another record with Language EN and Filename Test.pdf to show an error. I want to do it in the model. Bear in mind that i am new to CakePHP.