mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-12-06 11:22:41 +01:00
improved organization folder service: added function to find by id, return model entity after creation, added function to remove
This commit is contained in:
parent
79a1c1e9f3
commit
9487ddc910
3 changed files with 45 additions and 5 deletions
9
lib/Errors/OrganizationFolderNotFound.php
Normal file
9
lib/Errors/OrganizationFolderNotFound.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace OCA\OrganizationFolders\Errors;
|
||||
|
||||
class OrganizationFolderNotFound extends NotFoundException {
|
||||
public function __construct($id) {
|
||||
parent::__construct(\OCA\OrganizationFolders\Model\OrganizationFolder::class, ["id" => $id]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue