use Doctrine\Common\DataFixtures\FixtureInterface;
6
use Doctrine\Common\Persistence\ObjectManager;
7
use AppBundle\Entity\Post;
8
9
class LoadPostData implements FixtureInterface
10
{
11
/**
12
* {@inheritDoc}
13
*/
14
public function load(ObjectManager $manager)
15
{
16
$post_1 = new Post();
17
$post_1->setTitle('Welcome to the new site Symfony.si');
18
$post_1->setIntro('New website is attended for PHP developers and users of Symfony PHP framework and for promotion of Symfony framework in Slovenia.');
19
$post_1->setContent('Welcome to the new website Symfony.si. Page is interesting for PHP users of other frameworks and for those who have already used Symfony before. You will find useful advices and interesting information from Symfony world. Most of all you also have an opportunity to create this website along. It is open sourced and accessible on <a href="https://github.com/symfony-si/symfony.si">GitHub</a>. More Symfony information soon.