예제 #1
0
 public function __construct(EntityTypeInterface $parent = null, AttributeInterface $parent_attribute = null)
 {
     parent::__construct('Membership', [new Text('name', $this, ['mirrored' => true], $parent_attribute)], new Options(['referenced_type' => '\\Honeybee\\Tests\\Fixture\\GameSchema\\Projection\\Team\\TeamType', 'referenced_type_prefix' => 'team', 'identifying_attribute' => 'identifier']), $parent, $parent_attribute);
 }
예제 #2
0
 public function __construct(EntityTypeInterface $parent = null, AttributeInterface $parent_attribute = null)
 {
     parent::__construct('Player', [new Text('name', $this, ['mirrored' => true], $parent_attribute), new Text('tagline', $this, [], $parent_attribute), new GeoPointAttribute('area', $this, ['mirrored' => true, 'attribute_alias' => 'location'], $parent_attribute), new EmbeddedEntityListAttribute('profiles', $this, ['entity_types' => ['\\Honeybee\\Tests\\Fixture\\GameSchema\\Projection\\Game\\Embed\\ProfileType']], $parent_attribute)], new Options(['referenced_type' => '\\Honeybee\\Tests\\Fixture\\GameSchema\\Projection\\Player\\PlayerType', 'identifying_attribute' => 'identifier']), $parent, $parent_attribute);
 }
예제 #3
0
 public function __construct(EntityTypeInterface $parent = null, AttributeInterface $parent_attribute = null)
 {
     parent::__construct('Book', [], new Options(['referenced_type' => '\\Honeybee\\Tests\\Fixture\\BookSchema\\Projection\\Book\\BookType', 'identifying_attribute' => 'identifier']), $parent, $parent_attribute);
 }
 /**
  * Creates a new 'AccountType' instance.
  */
 public function __construct(EntityTypeInterface $parent = null, AttributeInterface $parent_attribute = null)
 {
     parent::__construct('Account', [new \Trellis\Runtime\Attribute\Text\TextAttribute('name', $this, array('mirrored' => true), $parent_attribute)], new Options(array('referenced_type' => '\\HBDemo\\Commenting\\Account\\Projection\\Standard\\AccountType', 'identifying_attribute' => 'identifier')), $parent, $parent_attribute);
 }
예제 #5
0
 public function __construct(EntityTypeInterface $parent = null, AttributeInterface $parent_attribute = null)
 {
     parent::__construct('TopicOption', [new TextAttribute('title', $this, ['mirrored' => true], $parent_attribute)], new Options(['referenced_type' => '\\Honeybee\\Tests\\Fixture\\TopicSchema\\Projection\\TopicOption\\TopicOptionType', 'identifying_attribute' => 'identifier']), $parent, $parent_attribute);
 }