delete child elements
This commit is contained in:
parent
ac0f404fce
commit
f4b42973cb
10 changed files with 271 additions and 17 deletions
|
|
@ -42,6 +42,11 @@ class FakeElementRepository implements ElementRepository
|
|||
return $this->cloneElement($updatedElement);
|
||||
}
|
||||
|
||||
public function delete(Element $element): void
|
||||
{
|
||||
unset($this->elementsById[$element->getId()]);
|
||||
}
|
||||
|
||||
public function find(int $id): ?Element
|
||||
{
|
||||
if (! isset($this->elementsById[$id])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue