MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/cwd/finance/source/Models/Ecommerce/OrderItens.php
<?php
/**
 * Created by PhpStorm.
 * User: sergiohidalgojunior
 * Date: 2019-09-23
 * Time: 18:12
 */

namespace Source\Models\Ecommerce;


use Source\Core\Model;

class OrderItens extends Model
{
    public function __construct()
    {
        parent::__construct("order_itens", ["id"], ["order_id", "date_chq", "item_value", "real_value", "days", "percentual"]);

    }

//    /**
//     * @return null|ProductVariations
//     */
//    public function variations(): ?ProductVariations
//    {
//        if ($this->variation_id) {
//            return (new ProductVariations())->find("id = :variation_id", "variation_id={$this->variation_id}")->fetch();
//        }
//        return null;
//    }

//    /**
//     * @return null|Product
//     */
//    public function product(): ?Product
//    {
//        if ($this->variation_id) {
//            return (new Product())->find("gallery_link = :gl", "gl={$this->variations()->product_id}")->fetch();
//        }
//        return null;
//    }


}