示例#1
0
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $attribute = new Attribute();
     $attribute->setName('content');
     $attribute->setDisplayName('Content');
     $attribute->setValueType('html');
     $attribute->setTemplate($this->getReference('page-template'));
     $attribute->setSort(10);
     $manager->persist($attribute);
     $manager->flush();
 }