mercredi 4 octobre 2017

Get count from has many relationship from 3 models

I have 3 models.

  1. Company
  2. Product
  3. Offer

A Company has many Products. A Product has many Offers.

How can I get the number/count of Offers a Company has?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire