OrderItemWithNullFK.php 446 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php

namespace yiiunit\data\ar\redis;

/**
 * Class OrderItem
 *
 * @property integer $order_id
 * @property integer $item_id
 * @property integer $quantity
 * @property string $subtotal
 */
class OrderItemWithNullFK extends ActiveRecord
{
    public static function primaryKey()
    {
        return ['order_id', 'item_id'];
    }

    public function attributes()
    {
        return ['order_id', 'item_id', 'quantity', 'subtotal'];
    }
}