Implement save method in collection reference repository

This commit is contained in:
Thibaud Fabre
2015-07-09 20:13:46 +02:00
parent c5cab178a9
commit 07c0691092
5 changed files with 77 additions and 17 deletions

View File

@@ -68,6 +68,18 @@ class CollectionReference
return $this->baseId;
}
/**
* @param int $baseId
*/
public function setBaseId($baseId)
{
if ($this->baseId > 0) {
throw new \LogicException('Cannot change the baseId of an existing collection reference.');
}
$this->baseId = $baseId;
}
/**
* @return int
*/