diff --git a/Models/Promotion.php b/Models/Promotion.php index 22afa64..e982b19 100644 --- a/Models/Promotion.php +++ b/Models/Promotion.php @@ -133,7 +133,7 @@ class Promotion public function countTasks() : int { - return count($this->tasks); + return \count($this->tasks); } public function getStart() : \DateTime diff --git a/Models/PromotionMapper.php b/Models/PromotionMapper.php index 34b538a..4e015fd 100644 --- a/Models/PromotionMapper.php +++ b/Models/PromotionMapper.php @@ -57,6 +57,11 @@ final class PromotionMapper extends DataMapperAbstract * * @var array> * @since 1.0.0 + */ /** + * Has many relation. + * + * @var array> + * @since 1.0.0 */ protected static $hasMany = [ 'tasks' => [