/** * Test the entity update * * @param FlowProperty $entity the entity * * @depends testCreate * * @return void */ public function testUpdate($entity) { $updateData = $this->entityData; $updateData['id'] = $entity->getId(); $updateData['name'] = 'update'; $updatedEntity = $this->manager->update($updateData); $this->checkEntity($updatedEntity, $updateData); }
/** * {@inheritDoc} */ public function updateReferences() { /** * @var Flow[] $flows */ $flows = $this->getRepository()->findAll(); foreach ($flows as $flow) { $flowProperty = $this->flowPropertyManager->findOneBy(['uuid' => $flow->getFlowPropertyUuid()]); $flow->setFlowProperty($flowProperty); $this->save($flow); } }