ProductConfigLinks.php 840 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\App\Models\Whmcs;
  3. use \Illuminate\Database\Eloquent\model as EloquentModel;
  4. use ThurData\Servers\KerioEmail\Core\Models\Whmcs\Product;
  5. /**
  6. * Description of ProductConfigLinks
  7. *
  8. * @author Mateusz Pawłowski <mateusz.pa@moduelsgarden.com>
  9. *
  10. * @property int $gid
  11. * @property int $pid
  12. */
  13. class ProductConfigLinks extends EloquentModel
  14. {
  15. /**
  16. * Table name
  17. *
  18. * @var string
  19. */
  20. protected $table = 'tblproductconfiglinks';
  21. /**
  22. * Indicates if the model should be timestamped.
  23. *
  24. * @var bool
  25. */
  26. public $timestamps = false;
  27. public function groups()
  28. {
  29. return $this->hasOne(ProductConfigGroups::class, 'id', 'gid');
  30. }
  31. public function product()
  32. {
  33. return $this->hasOne(Product::class, 'id', 'pid');
  34. }
  35. }