public function flush();
/** @inheritdoc */ public function processFlush() { $this->mapper->flush(); $this->onFlush($this->entitiesToFlush[0], $this->entitiesToFlush[1]); $entities = $this->entitiesToFlush; $this->entitiesToFlush = [[], []]; return $entities; }