I keep getting the following error:
Invalid validation rule: a rule must specify both attribute names and validator type.
My rules are the following but I don’t see why full_legal_name is throwing this error since I have a name and a validator.
public function rules()
{
return [
[[‘full_legal_name’], ‘string’, ‘max’ => 100],
[[‘retracted’, ‘status’, ‘representative’], ‘integer’],
[[‘retracted’, ‘representative’], ‘boolean’],
[[‘retracted_datetime’], ‘default’, ‘value’ => null],
[[‘retracted_datetime’, ‘create_time’, ‘modified_time’], ‘datetime’, ‘format’=>‘php:Y-m-d H:i:s’],
[[‘email’, ‘email’], ‘max’ => 50],
[[‘representative’, ‘full_legal_name’, ‘email’], ‘required’]
];
}