protected function getUnitIds() { $unit_ids = array(); foreach ($this->units as $unit) { $unit_ids[] = $unit->getUnitId(); } return $unit_ids; }