add temp collection prop

This commit is contained in:
Jacson Passold 2017-11-15 19:32:39 -02:00
parent 786c1cbab0
commit 9686812d14
2 changed files with 13 additions and 1 deletions

View File

@ -98,6 +98,10 @@ class Taxonomy extends \Tainacan\Entity {
function get_slug() {
return $this->get_mapped_property('slug');
}
function get_collections() {
return $this->get_mapped_property('collections');
}
// special Getters
function get_db_identifier() {
@ -124,5 +128,9 @@ class Taxonomy extends \Tainacan\Entity {
function set_allow_insert($value) {
return $this->set_mapped_property('allow_insert', $value);
}
function set_collections($value) {
return $this->set_mapped_property('collections', $value);
}
}

View File

@ -43,10 +43,14 @@ class Taxonomies {
'map' => 'meta',
'validation' => ''
],
'collections_ids' => [
'collections' => [
'map' => 'meta_multi',
'validation' => ''
],
'collections_ids' => [
'map' => 'meta_multi',
'validation' => ''
],
];
}