mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Implement save method in collection reference repository
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user