This commit is contained in:
David Bomba 2016-06-13 20:29:43 +10:00
parent 6e57976075
commit abafc4ce6f

View File

@ -26,7 +26,7 @@ class AccountTransformer extends EntityTransformer
public function includeExpenseCategories(Account $account) public function includeExpenseCategories(Account $account)
{ {
$transformer = new ExpenseTransformer($account, $this->serializer); $transformer = new ExpenseCategoryTransformer($account, $this->serializer);
return $this->includeCollection($account->expenseCategories, $transformer, ENTITY_EXPENSE_CATEGORIES); return $this->includeCollection($account->expenseCategories, $transformer, ENTITY_EXPENSE_CATEGORIES);
} }