public function __construct() { try { $this->db =& SDB::get_instance(); $this->set_properties(); if ($this->relationships) { $this->set_relation_properties($this->relationships); } } catch (Exception $e) { throw $e; } }