I think it only works if you are using the 'id' field in your table.
These tables are legacy tables that don't have an 'id' field as the
primary key.
So I guess in general you can say that isUnique only works if you have
a primary key of 'id'.
Do you agree?
Rick
On Jul 26, 9:18 am, euromark
isUnique also works for edit!!!
it does check on id != ownId automatically...
On 25 Jul., 23:20, Rick will...@gmail.com wrote:
Found my own answer/solution with this custom validator. I put this
in my app_model and then can use it from any model. You use it as a
rule as you would any core
Found my own answer/solution with this custom validator. I put this
in my app_model and then can use it from any model. You use it as a
rule as you would any core validator:
[code]
var $validate = array(
'partnumber' = array(
'rule1' = 'validateUniqueness',