/** * {@inheritdoc} */ public function remove(File $aFile) { $this->execute('DELETE FROM file WHERE id = :id', ['id' => $aFile->id()->id()]); if ($this->eventBus instanceof FileEventBus) { $this->handle($aFile->events()); } }
/** * {@inheritdoc} */ public function remove(File $aFile) { unset($this->files[$aFile->id()->id()]); if ($this->eventBus instanceof FileEventBus) { $this->handle($aFile->events()); } }