/** * @Given it is saved */ public function itIsSaved() { $this->entityManager->persist($this->price); $this->entityManager->flush(); $this->priceId = $this->price->getId(); }