Testing BoardMapper
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user