ValidateCodeFieldForObject::checkCode
makes sure that code is unique and gets rid of special characters should be run in onBeforeWrite
Signature
public function checkCode(
$obj,
[boolean
$createCode = false,
[string
$field = "Code"]] )
Parameters
$obj
—$createCode
— boolean
$field
— string