| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace ThurData\Servers\KerioEmail\App\Models\Whmcs;
- use \Illuminate\Database\Eloquent\model as EloquentModel;
- use ThurData\Servers\KerioEmail\Core\Models\Whmcs\Product;
- /**
- * Description of ProductConfigLinks
- *
- * @author Mateusz Pawłowski <mateusz.pa@moduelsgarden.com>
- *
- * @property int $gid
- * @property int $pid
- */
- class ProductConfigLinks extends EloquentModel
- {
- /**
- * Table name
- *
- * @var string
- */
- protected $table = 'tblproductconfiglinks';
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public $timestamps = false;
- public function groups()
- {
- return $this->hasOne(ProductConfigGroups::class, 'id', 'gid');
- }
- public function product()
- {
- return $this->hasOne(Product::class, 'id', 'pid');
- }
- }
|