function addData($attributes) { if (!isset($this->data)) { $this->data = new dbData($this, $attributes); } return $this->data; }