private function add_relationship($relationship) { $this->relationships[$relationship->attribute_name] = $relationship; }