This is a type of findAll method but here we can apply condition by Magic Method. See below format
App::InformationSet(NAME)->findAllBy[Field]([Value]);
Return multiple entry from the table.
Here [Field] is any database field of table, [Value] is a data that we want to apply in the query.
For example:
$data = App::CategorySet('blog-cat')->findAllByAdminref(1);
// Return value
/*
Array
(
[data] => Array
(
[0] => Array
(
[id] => 1
[fkey] => 0
[adminref] => 1
[parentid] => 0
[image] =>
[title] => Page Manager
[description] =>
[type] => blog-cat
[generic] =>
[entrydate] => 2012-12-13 10:47:18
[lastmodified] => 2012-12-13 10:47:18
)
[1] => Array
(
[id] => 2
[fkey] => 0
[adminref] => 1
[parentid] => 0
[image] =>
[title] => Applications
[description] =>
[type] => blog-cat
[generic] => 11
[entrydate] => 2012-12-13 10:08:41
[lastmodified] => 2012-12-13 10:08:41
)
)
)
*/