diff --git a/Models/Event.php b/Models/Event.php index f20f0e7..0e3f54e 100755 --- a/Models/Event.php +++ b/Models/Event.php @@ -412,6 +412,20 @@ class Event return $this->attributes; } + /** + * Get relations to the promotions. + * + * This includes customers, partners, ... + * + * @return array + * + * @since 1.0.0 + */ + public function getRelations() : array + { + return $this->accountRelations; + } + /** * {@inheritdoc} */ diff --git a/Models/EventAttributeType.php b/Models/EventAttributeType.php index e8f885a..4188eee 100755 --- a/Models/EventAttributeType.php +++ b/Models/EventAttributeType.php @@ -147,6 +147,18 @@ class EventAttributeType implements \JsonSerializable $this->fields = $fields; } + /** + * Get default values + * + * @return array + * + * @sicne 1.0.0 + */ + public function getDefaults() : array + { + return $this->defaults; + } + /** * {@inheritdoc} */ diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index d46fd31..b5d36a8 100755 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -257,6 +257,25 @@ $CONFIG = [ 'root' => '/', 'https' => false, ], + 'app' => [ + 'path' => __DIR__, + 'default' => [ + 'app' => 'Backend', + 'id' => 'backend', + 'lang' => 'en', + 'theme' => 'Backend', + 'org' => 1, + ], + 'domains' => [ + '127.0.0.1' => [ + 'app' => 'Backend', + 'id' => 'backend', + 'lang' => 'en', + 'theme' => 'Backend', + 'org' => 1, + ], + ], + ], 'socket' => [ 'master' => [ 'host' => '127.0.0.1',