This commit is contained in:
Samuel Georges 2015-01-25 13:10:17 +11:00
parent 9ec0ae6ae3
commit ff415a8542
1 changed files with 2 additions and 6 deletions

View File

@ -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'];
}
}