From 1587c762f89215d139cdf93ef74003b9e9d5be68 Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 3 May 2021 14:34:23 +0200 Subject: [PATCH] better fixture for AddressReference --- .../DataFixtures/ORM/LoadAddressReferences.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAddressReferences.php b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAddressReferences.php index 63de2eb21..81bd1d909 100644 --- a/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAddressReferences.php +++ b/src/Bundle/ChillMainBundle/DataFixtures/ORM/LoadAddressReferences.php @@ -65,8 +65,8 @@ class LoadAddressReferences extends AbstractFixture implements ContainerAwareInt { $ar= new AddressReference(); - $ar->setRefId($this->faker->phoneNumber); - $ar->setStreet($this->faker->streetAddress); + $ar->setRefId($this->faker->numerify('ref-id-######')); + $ar->setStreet($this->faker->streetName); $ar->setStreetNumber(rand(0,199)); $ar ->setPoint($this->getRandomPoint()); $ar->setPostcode($this->getReference(