We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

codes in app/models/UsersBadges.php

In github phalcon/forum, some codes like these,why? thanks in advance.

else {
$activity->type = 'B';
$activity->posts_id = 1;
$activity->posts_replies_id = 1;
}

What is your exact question? Those are objects with properties being set for whatever reason / application context - business logic.



2.6k
edited Jan '17

In app/models/UsersBadges.php, why did they set $activity->posts_id = 1?
why is it 1?
thank you very much in advance.

What is your exact question? Those are objects with properties being set for whatever reason / application context - business logic.