diff --git a/Models/Event.php b/Models/Event.php index 9bff3e2..03e2982 100644 --- a/Models/Event.php +++ b/Models/Event.php @@ -200,7 +200,7 @@ class Event public function countTasks() : int { - return count($this->tasks); + return \count($this->tasks); } public function getId() : int diff --git a/Models/EventMapper.php b/Models/EventMapper.php index f47840d..d64a888 100644 --- a/Models/EventMapper.php +++ b/Models/EventMapper.php @@ -57,6 +57,11 @@ final class EventMapper extends DataMapperAbstract * * @var array> * @since 1.0.0 + */ /** + * Has many relation. + * + * @var array> + * @since 1.0.0 */ protected static $hasMany = [ 'tasks' => [