Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct('Player', [new Text('name', $this, ['mandatory' => true]), new GeoPointAttribute('location', $this, []), new EmbeddedEntityListAttribute('profiles', $this, ['entity_types' => ['\\Honeybee\\Tests\\Fixture\\GameSchema\\Projection\\Player\\Embed\\ProfileType']]), new EmbeddedEntityListAttribute('simple_profiles', $this, ['entity_types' => ['\\Honeybee\\Tests\\Fixture\\GameSchema\\Projection\\Player\\Embed\\ProfileType']])]);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct('Team', [new Text('name', $this, ['mandatory' => true])], new Options(['is_hierarchical' => true]));
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct('Game', [new Text('title', $this, ['mandatory' => true]), new EmbeddedEntityListAttribute('challenges', $this, ['entity_types' => ['\\Honeybee\\Tests\\Fixture\\GameSchema\\Projection\\Game\\Embed\\ChallengeType']]), new EntityReferenceListAttribute('players', $this, ['entity_types' => ['\\Honeybee\\Tests\\Fixture\\GameSchema\\Projection\\Game\\Reference\\PlayerType']])]);
 }