LoadCommentsData fixture fix.

This commit is contained in:
Alexey Skobkin 2016-12-12 01:58:58 +03:00
parent 22784542bf
commit 24a173af16

View file

@ -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.