Core classCoredna\Kernel\Helper\Response
Query
Generic helper for retrieving data from other entities. Can be accessed in templates using $_query. Use entity or model name as entity, for example for example Blogs\Models\Frontend\Blog or Blogs\Entities\Post, as found in the Modules documentation.
Methods 4
Take arguments. The API serialises only getters that need none.
-
#
findBy(string $entity, array $criteria, ?array $orderBy, ?int $limit, ?int $offset) -
?Collection - Find records for the specified entity
-
#
findOneBy(string $entity, array $criteria, ?array $orderBy) -
?Model - Find a record for the specified entity. Returns null of the record could not be found for the criteria.
-
#
findCustomEntityRecordsBy(string $identifier, array $criteria, ?array $orderBy, ?int $limit, ?int $offset) -
?Collection - Find records for the specified custom entity
No members match the filter.