Hi guys, it's me, again :)
I have a code in OfficeController:
public function productsAction() {
    ...
    $products = MarketProducts::forOffice($categoryId);
    ...And code in MarketProducts model:
public function forOffice($catId) {
    $products = self::find([
        'category_id = ?0 and published_office = 1',
        'bind' => [$catId],
    ]);
    return $products;
}but i catch exception: Exception: Call to undefined method OfficeController::getschema()
Why OfficeController::getschema, but no MarketProducts?
How right write a own methods in Model class?