function validate(&$entry) { $entry['allocation_id'] = $this->so->calculate_allocation_id($entry); return parent::validate($entry); }