mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix test 2
This commit is contained in:
parent
52055778b3
commit
88b66a0274
@ -40,7 +40,7 @@ class AdminErrorsTable extends Table
|
||||
|
||||
$this->addBehavior('Timestamp');
|
||||
|
||||
$this->belongsTo('StateUsers', [
|
||||
$this->belongsTo('User', [
|
||||
'foreignKey' => 'state_user_id',
|
||||
'joinType' => 'INNER'
|
||||
]);
|
||||
@ -100,7 +100,7 @@ class AdminErrorsTable extends Table
|
||||
*/
|
||||
public function buildRules(RulesChecker $rules)
|
||||
{
|
||||
$rules->add($rules->existsIn(['state_user_id'], 'StateUsers'));
|
||||
$rules->add($rules->existsIn(['state_user_id'], 'User'));
|
||||
|
||||
return $rules;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user