asprin
Active member
Hi everyone,
If I a custom entity
If I a custom entity
Foo
and it has a column named status
which is an enum
that accepts values of Open, In Progress, Resolved
, can I use the finder()
to specify the order based on the status
value?
PHP:
$finder = \XF::finder('Asprin\FB:Foo');
if(<status is open>)
{
$finder->order('close_time', 'ASC')->order('updated_on', 'DESC');
}
else
{
$finder->order('updated_on', 'DESC');
}