Tidy up
This commit is contained in:
parent
9ec0ae6ae3
commit
ff415a8542
|
|
@ -265,15 +265,11 @@ class RelationController extends ControllerBehavior
|
|||
|
||||
switch ($this->relationType) {
|
||||
case 'hasMany':
|
||||
case 'belongsToMany':
|
||||
return ['add', 'create', 'delete', 'remove'];
|
||||
|
||||
case 'belongsToMany':
|
||||
return ['create', 'add', 'remove'];
|
||||
|
||||
case 'belongsTo':
|
||||
return ['create', 'update', 'link', 'delete', 'unlink'];
|
||||
|
||||
case 'hasOne':
|
||||
case 'belongsTo':
|
||||
return ['create', 'update', 'link', 'delete', 'unlink'];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue