sveneisenschmidt / yay

Gamification made simple. Integrate gamification into your organisation incl. achievements, goals, levels and leaderboards.
Apache License 2.0
72 stars 7 forks source link

Method `getActivies` must not return null #139

Closed sveneisenschmidt closed 6 years ago

sveneisenschmidt commented 6 years ago

Empty results can not be returned: http://yay-demo.sloppy.zone/api/players/jane.doe/personal-activities/

{
    exception: "Symfony\Component\Debug\Exception\FatalThrowableError",
    message: "Type error: Return value of Component\Entity\Player::getActivities() must implement interface Doctrine\Common\Collections\Collection, null returned"
}