Beispiel #1
0
 public function load(ObjectManager $manager)
 {
     $post = new Post();
     $post->setTitle('Заголовок');
     $post->setContent('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa molestias mollitia dolorem quibusdam nobis. Laboriosam ea maxime nemo sapiente, quas, numquam neque perferendis quia ut eius officia reprehenderit mollitia natus.');
     $post->setAuthor('unknown');
     $manager->persist($post);
     $manager->flush();
 }
 /**
  * {@inheritDoc}
  */
 public function getContent()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getContent', []);
     return parent::getContent();
 }