/** * Counts all associated ShipmentsAsFrom * @return int */ public function CountShipmentsAsFrom() { if (is_null($this->intCompanyId)) { return 0; } return Shipment::CountByFromCompanyId($this->intCompanyId); }