Specify type field
This commit is contained in:
parent
b7d4731d97
commit
af5115d0c3
2 changed files with 25 additions and 1 deletions
|
@ -25,4 +25,16 @@ class kolab_storage_cache_configuration extends kolab_storage_cache
|
|||
{
|
||||
protected $extra_cols = array('type');
|
||||
|
||||
/**
|
||||
* Helper method to convert the given Kolab object into a dataset to be written to cache
|
||||
*
|
||||
* @override
|
||||
*/
|
||||
protected function _serialize($object)
|
||||
{
|
||||
$sql_data = parent::_serialize($object);
|
||||
$sql_data['type'] = $object['type'];
|
||||
|
||||
return $sql_data;
|
||||
}
|
||||
}
|
|
@ -25,4 +25,16 @@ class kolab_storage_cache_contact extends kolab_storage_cache
|
|||
{
|
||||
protected $extra_cols = array('type');
|
||||
|
||||
/**
|
||||
* Helper method to convert the given Kolab object into a dataset to be written to cache
|
||||
*
|
||||
* @override
|
||||
*/
|
||||
protected function _serialize($object)
|
||||
{
|
||||
$sql_data = parent::_serialize($object);
|
||||
$sql_data['type'] = $object['_type'];
|
||||
|
||||
return $sql_data;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue