/** * Array access. Get field using external_id or offset. */ public function offsetGet($offset) { if (is_string($offset)) { return $this->get($offset); } return parent::offsetGet($offset); }