/** * Counts all associated StewardshipPostsAsCreatedBy * @return int */ public function CountStewardshipPostsAsCreatedBy() { if (is_null($this->intId)) { return 0; } return StewardshipPost::CountByCreatedByLoginId($this->intId); }