控制器中的一些逻辑业务或模型[MVC] PHP中的所有业务

I've been building a system with MVC pattern, and im stuck with the implementation of methods.

In my application, a company can get rating by the users. The company can or not exists in my application, so before the insert the rating the company have to exists in database.

My question is: have i to implement all the business logic in model or some validations in controller?

CONTROLLER

  1. check if have $_POST;
  2. check if company exists;
  3. if not exists execute insert() from Company model and return the inserted id;
  4. insert the rating with the $_company_id (Rating model);

OR

CONTROLLER

  1. Check if have $_POST
  2. execute insert() from Rating model with company parameters

RATING MODEL

  1. Check if company exists;
  2. if not exists execute insert() from Company model and return the inserted id;
  3. insert the rating with the $_company_id (Rating model);

What MVC means and what we have learned so far.

M(Model)      -> Used to perform database operations.
V(Views)      -> viewing the data in browser.
C(Controller) -> handle model and view.

So i would say, in your case, go ahead with 2nd option.

If you have any validations to be done, do it in controller.