+ $query = $this->entityQuery($type, $allowDrafts);
+
+ if ($ignorePermissions) {
+ $query = $this->entityProvider->get($type)->newQuery();
+ }
+
+ return $query->find($id);
+ }
+
+ /**
+ * @param string $type
+ * @param []int $ids
+ * @param bool $allowDrafts
+ * @param bool $ignorePermissions
+ * @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection|Collection
+ */
+ public function getManyById($type, $ids, $allowDrafts = false, $ignorePermissions = false)
+ {
+ $query = $this->entityQuery($type, $allowDrafts);
+