我有这个代码:
class Member extends ActiveRecord\Model
{
static $validates_uniqueness_of = array(
array('name', 'message' => "That name has already been registered. Please choose another", 'on' => 'create'),
array('email', 'message' => "That email has already been registered. Please choose another", 'on' => 'create')
);
}
问题是它在我更新时检查唯一性。我不想要那个。只有当我创建.
我打错了什么?