term will not use using super class insert

This commit is contained in:
Jacson Passold 2017-11-24 17:55:17 -02:00
parent 31791f7aab
commit d655d54900
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ namespace Tainacan\Entities;
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
class Term extends Entity {
protected static $post_type = false;
function __construct($which = 0, $taxonomy = '' ) {
$this->repository = 'Tainacan_Terms';

View File

@ -9,7 +9,8 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
* Class Tainacan_Terms
*/
class Terms extends Repository {
protected $entities_type = '\Tainacan\Entities\Term';
public function get_map() {
return [
'term_id' => [