public function getTableColumnsOnly()
	{
		$data = $this->attributes;
		$tableColumns = $this->getStructure()->getTableColumns($this->table);
		if (!empty($tableColumns))
		{
			$data = array_intersect_key($data, $tableColumns);
		}
		return $data;
	}
public function getTableColumnsOnly()
	{
		$data = $this->attributes;
		$tableColumns = $this->getStructure()->getTableColumns($this->table);
		if (!empty($tableColumns))
		{
			$data = array_intersect_key($data, $tableColumns);
		}
		return $data;
	}
public function getTableColumnsOnly ( ) { $ data = $ this -> attributes ; $ tableColumns = $ this -> getStructure ( ) -> getTableColumns ( $ this -> table ) ; if ( ! empty ( $ tableColumns ) ) { $ data = array_intersect_key ( $ data , $ tableColumns ) ; } return $ data ; }
Filters out fields that are not actually a table column

@param   string  $table  The name of the database table
@param   array   $data   The attributes passed in to be saved to the table
@return  array
Filters out fields that are not actually a table column