logging repository classes that does not insert using super class

This commit is contained in:
Jacson Passold 2017-11-24 19:19:29 -02:00
parent b94024b194
commit 4f81ecb469
2 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,7 @@ class Item_Metadata extends Repository {
} }
} }
Entities\Log::create($this->log_message, $this->log_description, $item_metadata);
// return a brand new object // return a brand new object
return new Entities\Item_Metadata_Entity($item_metadata->get_item(), $item_metadata->get_metadata()); return new Entities\Item_Metadata_Entity($item_metadata->get_item(), $item_metadata->get_metadata());

View File

@ -62,6 +62,8 @@ class Terms extends Repository {
} }
} }
Entities\Log::create($this->log_message, $this->log_description, $term);
return $term_inserted['term_id']; return $term_inserted['term_id'];
} }