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