Skip to content

Commit 32453d9

Browse files
author
Bohdan Berezhniy
committed
added entity types
1 parent f7b05ea commit 32453d9

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Model/ResourceModel/Category.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,4 +284,12 @@ public function lookupStoreIds($categoryId, $useCache = true)
284284

285285
return [];
286286
}
287+
288+
/**
289+
* @return string
290+
*/
291+
public function getEntityType()
292+
{
293+
return 'category';
294+
}
287295
}

Model/ResourceModel/Post.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,4 +527,12 @@ protected function _lookupAll($postId, $tableName, $field)
527527

528528
return $adapter->fetchAll($select);
529529
}
530+
531+
/**
532+
* @return string
533+
*/
534+
public function getEntityType()
535+
{
536+
return 'post';
537+
}
530538
}

Model/ResourceModel/Tag.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,4 +340,12 @@ protected function _lookupAll($tagId, $tableName, $field)
340340

341341
return $adapter->fetchAll($select);
342342
}
343+
344+
/**
345+
* @return string
346+
*/
347+
public function getEntityType()
348+
{
349+
return 'tag';
350+
}
343351
}

0 commit comments

Comments
 (0)