$x->whereAdd("etype = '{$this->escape($req['etype'])}' AND name = '{$this->escape($req['name'])}'");
$x->find(true);
if($x->count() > 0){
- $roo->jerr( function beforeInsert($req, $roo)
-);
+ $roo->jerr("name already exists - '{$req['name']}'" );
}
}
}