hambern
public $belongsTo = [
'category' => ['Indikator\Hospitality\Models\CategoryFood'],
'food' => ['Indikator\Hospitality\Models\Food'],
'drink' => ['Indikator\Hospitality\Models\Drink']
];
Should of course be:
public $belongsTo = [
'category' => ['Indikator\Hospitality\Models\Categories'],
'food' => ['Indikator\Hospitality\Models\Food'],
'drink' => ['Indikator\Hospitality\Models\Drink']
];
And it's the same for the drinks. Just a note... Controllers are usually in plural and Models are usually in singular, that way they are more easily separated:
Models\Category
Controllers\Categories
Last updated
1-2 of 2