Closed rhysemmerson closed 6 years ago
Smokescreen::transform(Integration::paginate());
Will throw UnresolvedTransformerException if the result set is empty.
UnresolvedTransformerException
Smokescreen introspects the first item to determine the Model, but this fails if the set is empty.
My solution is to add EmptyTransformer to handle the empty case.
EmptyTransformer
Will throw
UnresolvedTransformerException
if the result set is empty.Smokescreen introspects the first item to determine the Model, but this fails if the set is empty.
My solution is to add
EmptyTransformer
to handle the empty case.