/** * Counts all associated StewardshipStacks * @return int */ public function CountStewardshipStacks() { if (is_null($this->intId)) { return 0; } return StewardshipStack::CountByStewardshipBatchId($this->intId); }