From 24a173af1639f92dea27f571046aa110c8639e4d Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 12 Dec 2016 01:58:58 +0300 Subject: [PATCH] LoadCommentsData fixture fix. --- .../PointToolsBundle/DataFixtures/ORM/LoadCommentsData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/DataFixtures/ORM/LoadCommentsData.php b/src/Skobkin/Bundle/PointToolsBundle/DataFixtures/ORM/LoadCommentsData.php index 4a369f4..e406536 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/DataFixtures/ORM/LoadCommentsData.php +++ b/src/Skobkin/Bundle/PointToolsBundle/DataFixtures/ORM/LoadCommentsData.php @@ -32,7 +32,7 @@ class LoadCommentsData extends AbstractFixture implements OrderedFixtureInterfac ->setNumber($num) ->setDeleted(mt_rand(0, 15) ? false : true) ->setCreatedAt(new \DateTime()) - ->setAuthor(array_rand($users)) + ->setAuthor($users[array_rand($users)]) ->setRec(false) ->setText( 'Some text with [link to @skobkin-ru site](https://skobk.in/) and `code block`'.PHP_EOL.