Testing BoardMapper

This commit is contained in:
Julius Haertl
2017-01-18 14:43:00 +01:00
parent 73d196aa6c
commit 140c860944
4 changed files with 124 additions and 14 deletions

View File

@@ -57,15 +57,6 @@ class StackController extends Controller {
return $this->stackService->findAllArchived($boardId);
}
/**
* @NoAdminRequired
* @param $boardId
* @return
*/
public function read($boardId) {
return $this->stackService->find($this->userId, $boardId);
}
/**
* @NoAdminRequired
* @param $title

View File

@@ -31,7 +31,7 @@ class Board extends Entity implements JsonSerializable {
protected $title;
protected $owner;
protected $color;
protected $archived;
protected $archived = false;
protected $labels;
protected $acl;
protected $shared;
@@ -39,6 +39,7 @@ class Board extends Entity implements JsonSerializable {
public function __construct() {
$this->addType('id','integer');
$this->addType('shared','integer');
$this->addType('archived','boolean');
$this->addRelation('labels');
$this->addRelation('acl');
$this->addRelation('shared');