public function fill_data($values) {
	if (is_object($values)) {
		$values = parent::convert_object_to_array($values);
	}
	if (is_array($values) == false) {
		throw new \Exception('use add_data() for adding scalar values');
	}
	
	if (isset($values['id']) && $values['id'] == $this->primary_id) {
		unset($values['id']);
	}
	
	foreach ($values as $key => $single_value) {
		$this->add_data($key, $single_value);
	}
}
public function fill_data($values) {
	if (is_object($values)) {
		$values = parent::convert_object_to_array($values);
	}
	if (is_array($values) == false) {
		throw new \Exception('use add_data() for adding scalar values');
	}
	
	if (isset($values['id']) && $values['id'] == $this->primary_id) {
		unset($values['id']);
	}
	
	foreach ($values as $key => $single_value) {
		$this->add_data($key, $single_value);
	}
}
public function fill_data ( $ values ) { if ( is_object ( $ values ) ) { $ values = parent :: convert_object_to_array ( $ values ) ; } if ( is_array ( $ values ) == false ) { throw new \ Exception ( 'use add_data() for adding scalar values' ) ; } if ( isset ( $ values [ 'id' ] ) && $ values [ 'id' ] == $ this -> primary_id ) { unset ( $ values [ 'id' ] ) ; } foreach ( $ values as $ key => $ single_value ) { $ this -> add_data ( $ key , $ single_value ) ; } }
fills the primary data
this will end up in response.data.attributes

this is meant for adding an array as the primary data
objects will be converted using their public keys

@note skips an 'id'-key inside $values if identical to the $id given during construction

@see ->add_data()

@param  mixed $values objects are converted in arrays, @see base::convert_object_to_array()
@return void
fills the primary data this will end up in response . data . attributes