Beispiel #1
0
 public function testParameters()
 {
     $attributes = new Attribute();
     $parameters = array();
     $expected = $parameters;
     $attributes->setParameters($parameters);
     $actual = $attributes->getParameters();
     $this->assertSame($expected, $actual);
 }
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $attribute = new Attribute();
     $attribute->setName('content');
     $attribute->setDisplayName('Content');
     $attribute->setValueType('html');
     $attribute->setSchema($this->getReference('page-template'));
     $attribute->setSort(10);
     $manager->persist($attribute);
     $manager->flush();
 }