uawdijnntqw1x1x1
IP : 216.73.216.58
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
/
Purchasable.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 yii\db\ActiveQuery; use yii\db\ActiveQueryInterface; /** * Purchasable record. * * @property ActiveQueryInterface $element * @property int $id * @property string $description * @property float $price * @property string $sku * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 2.0 */ class Purchasable extends ActiveRecord { /** * @inheritdoc */ public static function tableName(): string { return Table::PURCHASABLES; } public static function find(): \craft\db\ActiveQuery { return parent::find() ->innerJoinWith(['element element']) ->where(['element.dateDeleted' => null]); } public static function findWithTrashed(): ActiveQuery { return static::find()->where([]); } public static function findTrashed(): ActiveQuery { return static::find()->where(['not', ['element.dateDeleted' => null]]); } public function getElement(): ActiveQueryInterface { return $this->hasOne(Element::class, ['id' => 'id']); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/commerce/src/records/Purchasable.php