uawdijnntqw1x1x1
IP : 216.73.216.28
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
commerce
/
src
/
.
/
records
/
Product.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\commerce\records; use craft\commerce\db\Table; use craft\db\ActiveRecord; use craft\records\Element; use DateTime; use yii\db\ActiveQueryInterface; /** * Product record. * * @property float $defaultHeight * @property float $defaultLength * @property float $defaultPrice * @property string $defaultSku * @property int $defaultVariantId * @property float $defaultWeight * @property float $defaultWidth * @property ActiveQueryInterface $element * @property DateTime $expiryDate * @property bool $freeShipping * @property int $id * @property DateTime $postDate * @property bool $promotable * @property bool $availableForPurchase * @property ActiveQueryInterface $shippingCategory * @property int $shippingCategoryId * @property int $taxCategoryId * @property TaxCategory $taxCategory * @property ActiveQueryInterface $type * @property int $typeId * @property Variant[] $variants * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 2.0 */ class Product extends ActiveRecord { /** * @inheritdoc */ public static function tableName(): string { return Table::PRODUCTS; } public function getVariants(): ActiveQueryInterface { return $this->hasMany(Variant::class, ['productId' => 'id']); } public function getElement(): ActiveQueryInterface { return $this->hasOne(Element::class, ['id' => 'id']); } public function getType(): ActiveQueryInterface { return $this->hasOne(ProductType::class, ['id' => 'productTypeId']); } public function getShippingCategory(): ActiveQueryInterface { return $this->hasOne(ShippingCategory::class, ['id' => 'shippingCategoryId']); } public function getTaxCategory(): ActiveQueryInterface { return $this->hasOne(TaxCategory::class, ['id' => 'taxCategoryId']); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/commerce/src/./records/Product.php