public function getType() { if (is_null($this->m_type)) { $this->m_type = new AuthorType((int) $this->m_data['fk_type_id']); } return $this->m_type; }