mirror of
https://github.com/Karaka-Management/oms-EventManagement.git
synced 2026-02-13 16:28:42 +00:00
bug fixes / dbmapper fixes
This commit is contained in:
parent
7a55819e9b
commit
954176b1df
|
|
@ -62,8 +62,6 @@ class AccountRelation
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param string $name Event name/title
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
|
|
||||||
|
|
@ -193,15 +193,15 @@ class Event
|
||||||
*/
|
*/
|
||||||
public function __construct(string $name = '')
|
public function __construct(string $name = '')
|
||||||
{
|
{
|
||||||
$this->start = new \DateTime('now');
|
$this->start = new \DateTime('now');
|
||||||
$this->end = (new \DateTime('now'))->modify('+1 month');
|
$this->end = (new \DateTime('now'))->modify('+1 month');
|
||||||
$this->calendar = new Calendar();
|
$this->calendar = new Calendar();
|
||||||
$this->budgetCosts = new Money();
|
$this->budgetCosts = new Money();
|
||||||
$this->budgetEarnings = new Money();
|
$this->budgetEarnings = new Money();
|
||||||
$this->actualCosts = new Money();
|
$this->actualCosts = new Money();
|
||||||
$this->actualEarnings = new Money();
|
$this->actualEarnings = new Money();
|
||||||
$this->createdAt = new \DateTimeImmutable('now');
|
$this->createdAt = new \DateTimeImmutable('now');
|
||||||
$this->createdBy = new NullAccount();
|
$this->createdBy = new NullAccount();
|
||||||
|
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ class EventAttribute implements \JsonSerializable, ArrayableInterface
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'item' => $this->item,
|
'event' => $this->event,
|
||||||
'type' => $this->type,
|
'type' => $this->type,
|
||||||
'value' => $this->value,
|
'value' => $this->value,
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ class EventAttributeType implements \JsonSerializable, ArrayableInterface
|
||||||
* Set l11n
|
* Set l11n
|
||||||
*
|
*
|
||||||
* @param string|EventAttributeTypeL11n $l11n Tag article l11n
|
* @param string|EventAttributeTypeL11n $l11n Tag article l11n
|
||||||
* @param string $lang Language
|
* @param string $lang Language
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -63,8 +63,8 @@ class EventAttributeTypeL11n implements \JsonSerializable, ArrayableInterface
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param int|EventAttributeType $type Attribute type
|
* @param int|EventAttributeType $type Attribute type
|
||||||
* @param string $title Localized title
|
* @param string $title Localized title
|
||||||
* @param string $language Language
|
* @param string $language Language
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https: //orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
||||||
*
|
*
|
||||||
* @package Modules\EventManagement\Models
|
* @package Modules\EventManagement\Models
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https: //orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
final class EventAttributeValueMapper extends DataMapperFactory
|
final class EventAttributeValueMapper extends DataMapperFactory
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user